net.sourceforge.nite.datainspection.impl
Class BooleanMetric

java.lang.Object
  extended by net.sourceforge.nite.datainspection.impl.BooleanMetric
All Implemented Interfaces:
DistanceMetric

public class BooleanMetric
extends java.lang.Object
implements DistanceMetric

class DiceMetric for distance metrics for alpha

Author:
Rieks op den Akker

Constructor Summary
BooleanMetric()
           
 
Method Summary
 double distance(Value f, Value s)
          implements distance of interface DistanceMetric using nominal boolean valued metric
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanMetric

public BooleanMetric()
Method Detail

distance

public double distance(Value f,
                       Value s)
implements distance of interface DistanceMetric using nominal boolean valued metric

Specified by:
distance in interface DistanceMetric
Parameters:
f - ans are not null Values
Returns:
1.0 when not equal