public class LinearFunction extends Function
Constructor and Description |
---|
LinearFunction() |
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double x)
Evaluates the function at position x
|
void |
fitToPoints(double[] x,
double[] y)
Fits the function to the given input data
|
double |
getM() |
int |
getMinimumNumberOfCorrespondences() |
double[] |
getParametersAsDoubleArray() |
double |
getT() |
void |
setM(double m) |
void |
setT(double t) |
java.lang.String |
toString() |
fitToPoints, getAvailableFunctions, getNumberOfParameters
public double evaluate(double x)
Function
public void fitToPoints(double[] x, double[] y)
Function
fitToPoints
in class Function
x
- the input datay
- the output datapublic double getM()
public void setM(double m)
public double getT()
public void setT(double t)
public int getMinimumNumberOfCorrespondences()
getMinimumNumberOfCorrespondences
in class Function
public double[] getParametersAsDoubleArray()
getParametersAsDoubleArray
in class Function