Class ScoreScriptUtils

java.lang.Object
org.elasticsearch.script.ScoreScriptUtils

public final class ScoreScriptUtils extends Object
  • 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 of value with scaling parameters k and a