public class SquaredEuclideanFunction extends VectorDistanceFunction
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
oneOverPower, power, source1, source2| Constructor and Description |
|---|
SquaredEuclideanFunction(MultiValueSource source1,
MultiValueSource source2) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
distance(int doc,
DocValues dv1,
DocValues dv2)
Calculate the distance
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
protected java.lang.String |
name() |
createWeight, description, getValuesgetSortField, getValues, newContext, toStringpublic SquaredEuclideanFunction(MultiValueSource source1, MultiValueSource source2)
protected java.lang.String name()
name in class VectorDistanceFunctionprotected double distance(int doc,
DocValues dv1,
DocValues dv2)
VectorDistanceFunctiondistance in class VectorDistanceFunctiondoc - The doc to scoredv1 - The values from the first MultiValueSourcedv2 - The values from the second MultiValueSourcepublic boolean equals(java.lang.Object o)
equals in class VectorDistanceFunctionpublic int hashCode()
hashCode in class VectorDistanceFunction