java.lang.Object
org.elasticsearch.script.ScoreScriptUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
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
-