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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getValue(double argument)
Returns approximated value for the provided argument.
-