Package org.nlpub.watset.graph
Class MarkovClustering.InflateVisitor
- java.lang.Object
-
- org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor
-
- org.nlpub.watset.graph.MarkovClustering.InflateVisitor
-
- All Implemented Interfaces:
org.apache.commons.math3.linear.RealMatrixChangingVisitor
- Enclosing class:
- MarkovClustering<V,E>
public static class MarkovClustering.InflateVisitor extends org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitorVisitor that raises each element to the power ofMarkovClustering.r.
-
-
Constructor Summary
Constructors Constructor Description InflateVisitor(double r)Create an instance of the inflator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublevisit(int row, int column, double value)Raise the value of a single element to the power ofr.
-
-
-
Method Detail
-
visit
public double visit(int row, int column, double value)Raise the value of a single element to the power ofr.- Specified by:
visitin interfaceorg.apache.commons.math3.linear.RealMatrixChangingVisitor- Overrides:
visitin classorg.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor- Parameters:
row- rowcolumn- columnvalue- the value- Returns:
- the value raised to the power of
r
-
-