T - the possible key type. On sparse vectors where inverted indices
are used, this is the dimension where the value not equals 0.public final class VectorDocumentDistanceMeasurer<T> extends Object implements InvertedIndex.DocumentDistanceMeasurer<de.jungblut.math.DoubleVector,T>
DistanceMeasurer).| Modifier and Type | Method and Description |
|---|---|
double |
measure(de.jungblut.math.DoubleVector reference,
Set<T> referenceKeys,
de.jungblut.math.DoubleVector doc,
Set<T> docKeys)
Measures the distance (value between 0.0 and 1.0) between a reference
document and a candidate document.
|
static <T> VectorDocumentDistanceMeasurer<T> |
with(DistanceMeasurer measurer) |
public double measure(de.jungblut.math.DoubleVector reference,
Set<T> referenceKeys,
de.jungblut.math.DoubleVector doc,
Set<T> docKeys)
InvertedIndex.DocumentDistanceMeasurermeasure in interface InvertedIndex.DocumentDistanceMeasurer<de.jungblut.math.DoubleVector,T>reference - the reference document.referenceKeys - the reference document key parts.doc - the candidate document.docKeys - the candidate document key parts.public static <T> VectorDocumentDistanceMeasurer<T> with(DistanceMeasurer measurer)
Copyright © 2016. All rights reserved.