Interface SearchClosestValueMonoticallyIncreasing.ValueFunction

Enclosing class:
SearchClosestValueMonoticallyIncreasing
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SearchClosestValueMonoticallyIncreasing.ValueFunction
The function that calculates the output value for a particular input int.

It must be monotonically increasing.

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(int input)
    Calculate the output value, for a particular input-value.
  • Method Details

    • calculate

      double calculate(int input)
      Calculate the output value, for a particular input-value.
      Parameters:
      input - the input integer.
      Returns:
      the calculated output value.