cbr.similarity
Class NullMetric
java.lang.Object
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. |
NullMetric
public NullMetric()
- Create a null metric.
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 featuref2
- another case feature
- Returns:
- 0