de.spieleck.app.cngram
Interface NGramMetric
- All Known Implementing Classes:
- C2aMetric, C2Metric, C2xMetric, CosMetric, RawMetric, SqMetric
public interface NGramMetric
A way to measure the distance between two ngram profiles.
- Version:
- $Revision: 2 $ $Date: 2006-03-27 23:00:21 +0200 (Mo, 27 Mrz 2006) $ $Author: nestefan $
- Author:
- frank nestel, $Author: nestefan $
diff
double diff(NGramProfile p1,
NGramProfile p2)
- Return the difference between two profiles.
- Returns:
- 0.0 profiles considered identical, > 0 otherwise; some implementations are limited to a maximum difference of 1.0.