Class LinearFloatFunction

java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.LinearFloatFunction

public class LinearFloatFunction extends ValueSource
LinearFloatFunction implements a linear function over another ValueSource.
Normally Used as an argument to a FunctionQuery
  • Field Details

    • source

      protected final ValueSource source
    • slope

      protected final float slope
    • intercept

      protected final float intercept
  • Constructor Details

    • LinearFloatFunction

      public LinearFloatFunction(ValueSource source, float slope, float intercept)
  • Method Details