moj.similarity.measures
Class BinOGES_row

java.lang.Object
  extended by moj.similarity.SimilarityMeasure
      extended by moj.similarity.measures.BinOGES_row

public class BinOGES_row
extends SimilarityMeasure

OGE MEASURE OF ASSOCIATION
http://www.psych.cornell.edu/Darlington/crosstab/table3.htm
OGE has a frequency interpretation that many users will find more appealing than the ratio-scale interpretation of phi2. OGE stands for "o greater than e", and is based on the number of cases falling in cells for which o>e.
Similarity [0, 1].
Usage: for binary data.

Version:
2004-Oct-25
Author:
Martin Hassel

Constructor Summary
BinOGES_row()
           
 
Method Summary
 double[][] analyzeMatrix(float[][] data_matrix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinOGES_row

public BinOGES_row()
Method Detail

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