org.carrot2.util
Class LinearApproximation

java.lang.Object
  extended by org.carrot2.util.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
LinearApproximation(double[] points, double argMin, double argMax)
           
 
Method Summary
 double getValue(double argument)
          Returns approximated value for the provided argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearApproximation

public LinearApproximation(double[] points,
                           double argMin,
                           double argMax)
Method Detail

getValue

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



Copyright (c) Dawid Weiss, Stanislaw Osinski