cbr.similarity
Class NullMetric

java.lang.Object
  extended by cbr.similarity.NullMetric
All Implemented Interfaces:
SimilarityMetric

public class NullMetric
extends Object
implements SimilarityMetric

Used for target case features that are not indexed.


Constructor Summary
NullMetric()
          Create a null metric.
 
Method Summary
 double compare(Feature f1, Feature f2)
          No comparision is performed as the features are not indexed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullMetric

public NullMetric()
Create a null metric.

Method Detail

compare

public double compare(Feature f1,
                      Feature f2)
No comparision is performed as the features are not indexed.

Specified by:
compare in interface SimilarityMetric
Parameters:
f1 - a case feature
f2 - another case feature
Returns:
0