Class MarkovClustering.InflateVisitor

  • All Implemented Interfaces:
    org.apache.commons.math3.linear.RealMatrixChangingVisitor
    Enclosing class:
    MarkovClustering<V,​E>

    public class MarkovClustering.InflateVisitor
    extends org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor
    Visitor that raises each element to the power of MarkovClustering.r.
    • Method Detail

      • visit

        public double visit​(int row,
                            int column,
                            double value)
        Raise the value of a single element to the power of r.
        Specified by:
        visit in interface org.apache.commons.math3.linear.RealMatrixChangingVisitor
        Overrides:
        visit in class org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor
        Parameters:
        row - row
        column - column
        value - the value
        Returns:
        the value raised to the power of r