Package org.elasticsearch.script
Class ScoreScriptUtils
java.lang.Object
org.elasticsearch.script.ScoreScriptUtils
public final class ScoreScriptUtils
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScoreScriptUtils.DecayDateExp
static class
ScoreScriptUtils.DecayDateGauss
static class
ScoreScriptUtils.DecayDateLinear
static class
ScoreScriptUtils.DecayGeoExp
static class
ScoreScriptUtils.DecayGeoGauss
static class
ScoreScriptUtils.DecayGeoLinear
static class
ScoreScriptUtils.DecayNumericExp
static class
ScoreScriptUtils.DecayNumericGauss
static class
ScoreScriptUtils.DecayNumericLinear
static class
ScoreScriptUtils.RandomScoreDoc
static class
ScoreScriptUtils.RandomScoreField
-
Constructor Summary
Constructors Constructor Description ScoreScriptUtils()
-
Method Summary
Modifier and Type Method Description static double
saturation(double value, double k)
STATIC FUNCTIONS that can be used by users for score calculationsstatic double
sigmoid(double value, double k, double a)
Calculate a sigmoid ofvalue
with scaling parametersk
anda
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScoreScriptUtils
public ScoreScriptUtils()
-
-
Method Details
-
saturation
public static double saturation(double value, double k)STATIC FUNCTIONS that can be used by users for score calculations -
sigmoid
public static double sigmoid(double value, double k, double a)Calculate a sigmoid ofvalue
with scaling parametersk
anda
-