public class SquaredEuclideanFunction extends VectorDistanceFunction
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
oneOverPower, power, source1, source2| Constructor and Description |
|---|
SquaredEuclideanFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource source1,
org.apache.lucene.queries.function.valuesource.MultiValueSource source2) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
distance(int doc,
org.apache.lucene.queries.function.FunctionValues dv1,
org.apache.lucene.queries.function.FunctionValues dv2)
Calculate the distance
|
boolean |
equals(Object o) |
int |
hashCode() |
protected String |
name() |
createWeight, description, distSquaredCartesian, getValues, vectorDistance, vectorDistanceprotected String name
public SquaredEuclideanFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource source1,
org.apache.lucene.queries.function.valuesource.MultiValueSource source2)
protected String name()
name in class VectorDistanceFunctionprotected double distance(int doc,
org.apache.lucene.queries.function.FunctionValues dv1,
org.apache.lucene.queries.function.FunctionValues dv2)
VectorDistanceFunctiondistance in class VectorDistanceFunctiondoc - The doc to scoredv1 - The values from the first MultiValueSourcedv2 - The values from the second MultiValueSourcepublic boolean equals(Object o)
equals in class VectorDistanceFunctionpublic int hashCode()
hashCode in class VectorDistanceFunctionCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.