Class LinearApproximation

java.lang.Object
org.carrot2.math.LinearApproximation

public class LinearApproximation
extends Object
A simple utility for calculating linear approximations based on values for equally distributed points between minimum and maximum arguments.
  • Constructor Details

    • LinearApproximation

      public LinearApproximation​(double[] points, double argMin, double argMax)
  • Method Details

    • getValue

      public double getValue​(double argument)
      Returns approximated value for the provided argument.