Class GaussDecayFunction
java.lang.Object
com.atlassian.confluence.search.v2.score.GaussDecayFunction
- All Implemented Interfaces:
ComposableScoreFunction
,ScoreFunction
A gaussian decay function. The further the values are from an origin + offset, the lower the score.
Important attributes to note:
- Value is between 0 and 1.
- When absolute distance from origin is less than or equal to offset, the value is 1.
- When absolute distance from origin and offset is equal to scale, the value is equal to decay.
- Curve is shaped like a gaussian bell-curve distribution.
Useful for applying multiplicative decay, based on recency of modification.
See Elasticsearch supported decay functions for the formula being used.
- Since:
- 7.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GaussDecayFunction
-
-
Method Details
-
getSource
-
getParameters
-