moj.similarity.measures
Class SimRatioS_row
java.lang.Object
moj.similarity.SimilarityMeasure
moj.similarity.measures.SimRatioS_row
public class SimRatioS_row
- extends SimilarityMeasure
SIMILARITY RATIO
http://ag.arizona.edu/classes/rnr555/lecnotes/10.html
For presence-absence data, SR reduces to the Jaccard index.
- Version:
- 2004-Sep-13
- Author:
- Martin Hassel
SimRatioS_row
public SimRatioS_row()
analyzeMatrix
public double[][] analyzeMatrix(float[][] data_matrix)
- Specified by:
analyzeMatrix
in class SimilarityMeasure
- Parameters:
data_matrix
- an array of float
arrays denoting the
rows in the matrix that are to be compared for similarity.
- Returns:
- an array of
double
arrays containing the
similarities between all rows