moj.similarity.measures
Class YuleQS_row
java.lang.Object
moj.similarity.SimilarityMeasure
moj.similarity.measures.YuleQS_row
public class YuleQS_row
- extends SimilarityMeasure
YULE'S Q SIMILARITY
http://149.170.199.144/multivar/dist.htm
http://crrm.univ-mrs.fr/commercial/software/dataview/appendix.html
This index is a function of the cross-ratio for a 2x2 table and is
independent of the marginal totals. It has a range of -1 to 1. Also known
as the coefficient of colligation.
similarity [-1, 1]
Usage: for binary data.
- Version:
- 2004-Sep-17
- Author:
- Martin Hassel
YuleQS_row
public YuleQS_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