I - type of independent dataD - type of dependent dataM - concrete type of model learnedpublic class SimpleModelFitting<I,D,M extends EstimatableModel<I,D>> extends Object implements RobustModelFitting<I,D,M>
| Constructor and Description |
|---|
SimpleModelFitting(M m,
ResidualCalculator<I,D,M> errorModel,
DistanceCheck dc)
Creates a SimpleModelFitting object to fit data to a model
|
SimpleModelFitting(M m,
ResidualCalculator<I,D,M> errorModel,
double errorThreshold)
Creates a SimpleModelFitting object to fit data to a model
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fitData(List<? extends IndependentPair<I,D>> data)
Attempt to fit the given data to the model.
|
List<? extends IndependentPair<I,D>> |
getInliers() |
M |
getModel() |
List<? extends IndependentPair<I,D>> |
getOutliers() |
int |
numItemsToEstimate() |
public SimpleModelFitting(M m, ResidualCalculator<I,D,M> errorModel, double errorThreshold)
m - model to fit data toerrorModel - the error modelerrorThreshold - the error thresholdpublic SimpleModelFitting(M m, ResidualCalculator<I,D,M> errorModel, DistanceCheck dc)
m - model to fit data toerrorModel - the error modeldc - the error/distance check that determines whether a point is
validpublic List<? extends IndependentPair<I,D>> getInliers()
getInliers in interface RobustModelFitting<I,D,M extends EstimatableModel<I,D>>public List<? extends IndependentPair<I,D>> getOutliers()
getOutliers in interface RobustModelFitting<I,D,M extends EstimatableModel<I,D>>public boolean fitData(List<? extends IndependentPair<I,D>> data)
ModelFittingfitData in interface ModelFitting<I,D,M extends EstimatableModel<I,D>>data - Data to be fittedpublic M getModel()
getModel in interface ModelFitting<I,D,M extends EstimatableModel<I,D>>public int numItemsToEstimate()
numItemsToEstimate in interface ModelFitting<I,D,M extends EstimatableModel<I,D>>