public class PolynomialFunction extends Function
Constructor and Description |
---|
PolynomialFunction() |
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
|
int |
getDegree() |
int |
getMinimumNumberOfCorrespondences() |
double[] |
getParametersAsDoubleArray() |
void |
setDegree(int degree)
Sets the degree of the polynomial function.
|
java.lang.String |
toString() |
fitToPoints, getAvailableFunctions, getNumberOfParameters
public int getDegree()
public void setDegree(int degree)
degree
- the degree to setpublic double[] getParametersAsDoubleArray()
getParametersAsDoubleArray
in class Function
public void fitToPoints(double[] x, double[] y)
Function
fitToPoints
in class Function
x
- the input datay
- the output datapublic double evaluate(double x)
Function
public int getMinimumNumberOfCorrespondences()
getMinimumNumberOfCorrespondences
in class Function