public class RANSACFittedFunction extends Function
Constructor and Description |
---|
RANSACFittedFunction(Function func) |
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
|
Function |
getBaseFunction() |
double |
getEpsilon() |
int |
getMinimumNumberOfCorrespondences() |
int |
getNumberOfTries() |
double[] |
getParametersAsDoubleArray() |
void |
setBaseFunction(Function baseFunction) |
void |
setEpsilon(double epsilon) |
void |
setNumberOfTries(int numberOfTries) |
java.lang.String |
toString() |
fitToPoints, getAvailableFunctions, getNumberOfParameters
public RANSACFittedFunction(Function func)
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
public void setBaseFunction(Function baseFunction)
baseFunction
- the baseFunction to setpublic Function getBaseFunction()
public void setNumberOfTries(int numberOfTries)
numberOfTries
- the numberOfTries to setpublic int getNumberOfTries()
public double getEpsilon()
public void setEpsilon(double epsilon)
epsilon
- the epsilon to setpublic double[] getParametersAsDoubleArray()
getParametersAsDoubleArray
in class Function