public interface DecayFunction
GaussDecayFunctionBuilder
.Modifier and Type | Method and Description |
---|---|
double |
evaluate(double value,
double scale) |
org.apache.lucene.search.Explanation |
explainFunction(java.lang.String valueString,
double value,
double scale) |
double |
processScale(double scale,
double decay)
The final scale parameter is computed from the scale parameter given by
the user and a value.
|
double evaluate(double value, double scale)
org.apache.lucene.search.Explanation explainFunction(java.lang.String valueString, double value, double scale)
double processScale(double scale, double decay)
scale
- the raw scale value given by the userdecay
- the value which decay function should take once the distance
reaches this scale