Package org.carrot2.math
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 Summary
Constructors Constructor Description LinearApproximation(double[] points, double argMin, double argMax)
-
Method Summary
Modifier and Type Method Description double
getValue(double argument)
Returns approximated value for the provided argument.
-
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.
-