edu.stanford.rsl.konrad.fitting
Class LinearFunction
java.lang.Object
edu.stanford.rsl.konrad.fitting.Function
edu.stanford.rsl.konrad.fitting.LinearFunction
- All Implemented Interfaces:
- java.io.Serializable
public class LinearFunction
- extends Function
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinearFunction
public LinearFunction()
evaluate
public double evaluate(double x)
- Specified by:
evaluate
in class Function
toString
public java.lang.String toString()
- Specified by:
toString
in class Function
fitToPoints
public void fitToPoints(double[] x,
double[] y)
- Specified by:
fitToPoints
in class Function
getM
public double getM()
setM
public void setM(double m)
getT
public double getT()
setT
public void setT(double t)