We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 237eef5 commit af2df02Copy full SHA for af2df02
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Decay.java
@@ -442,7 +442,7 @@ static double processCartesianPoint(
442
distance = Math.max(0.0, distance - offsetValue);
443
444
return switch (functionType.utf8ToString()) {
445
- // TODO: check these formulas
+ // TODO: double-check against painless, if applicable
446
case "exp" -> Math.exp(-distance * Math.log(decay) / scaleValue);
447
case "gauss" -> Math.exp(-0.5 * Math.pow(distance / (scaleValue / Math.sqrt(-2.0 * Math.log(decay))), 2));
448
default -> { // linear
0 commit comments