public static class RANSAC.PercentageInliersStoppingCondition extends RANSAC.NumberInliersStoppingCondition
Constructor and Description |
---|
PercentageInliersStoppingCondition(double percentageLimit)
Construct the stopping condition with the given percentage threshold
on the number of data points which must match for a model to be
considered a fit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
init(List<?> data,
EstimatableModel<?,?> model)
Initialise the stopping condition if necessary.
|
finalFitCondition, shouldStopIterations
public PercentageInliersStoppingCondition(double percentageLimit)
percentageLimit
- the percentage thresholdpublic boolean init(List<?> data, EstimatableModel<?,?> model)
RANSAC.StoppingCondition
init
in interface RANSAC.StoppingCondition
init
in class RANSAC.NumberInliersStoppingCondition
data
- The data being fittedmodel
- The model to fit