Package org.nlpub.watset.graph
Class MarkovClustering.NormalizeVisitor
- java.lang.Object
-
- org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitor
-
- org.nlpub.watset.graph.MarkovClustering.NormalizeVisitor
-
- All Implemented Interfaces:
org.apache.commons.math3.linear.RealMatrixChangingVisitor
- Enclosing class:
- MarkovClustering<V,E>
public static class MarkovClustering.NormalizeVisitor extends org.apache.commons.math3.linear.DefaultRealMatrixChangingVisitorVisitor that normalizes columns.
-
-
Constructor Summary
Constructors Constructor Description NormalizeVisitor(org.apache.commons.math3.linear.RealMatrix sums)Create an instance of the normalizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublevisit(int row, int column, double value)Divide the value of a single element by the corresponding column ofsums.
-
-
-
Method Detail
-
visit
public double visit(int row, int column, double value)Divide the value of a single element by the corresponding column ofsums.- 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 normalized value
-
-