Jacson

de.spieleck.app.cngram
Class C2xMetric

java.lang.Object
  extended by de.spieleck.app.cngram.C2xMetric
All Implemented Interfaces:
NGramMetric

public class C2xMetric
extends java.lang.Object
implements NGramMetric

ALPHA modified Chi^2 Metric without rectification of classes and with centrification between the two profiles.

Version:
$Revision: 2 $ $Date: 2006-03-27 23:00:21 +0200 (Mo, 27 Mrz 2006) $ $Author: nestefan $
Author:
frank nestel, $Author: nestefan $

Field Summary
static double ALPHA
           
 
Constructor Summary
C2xMetric()
           
 
Method Summary
 double diff(NGramProfile p1, NGramProfile p2)
          Return the difference between two profiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHA

public static final double ALPHA
See Also:
Constant Field Values
Constructor Detail

C2xMetric

public C2xMetric()
Method Detail

diff

public double diff(NGramProfile p1,
                   NGramProfile p2)
Description copied from interface: NGramMetric
Return the difference between two profiles.

Specified by:
diff in interface NGramMetric
Returns:
0.0 profiles considered identical, > 0 otherwise; some implementations are limited to a maximum difference of 1.0.

spieleck.de