Package org.hipparchus.fitting.ransac
Class RansacFitterOutputs<M>
java.lang.Object
org.hipparchus.fitting.ransac.RansacFitterOutputs<M>
- Type Parameters:
M- mathematical model representing the parameters to estimate
Class containing the best estimate of the model parameters.
- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionRansacFitterOutputs(Optional<M> bestModel, List<Fittable> bestInliers, IModelFitter<M> fitter) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfilterPointsBelowThreshold(List<Fittable> points, double threshold) Finds the points below a given threshold based on the computed best model parameters.Get the list of points used to determine the best model parameters.Get the best model parameters.
-
Constructor Details
-
RansacFitterOutputs
public RansacFitterOutputs(Optional<M> bestModel, List<Fittable> bestInliers, IModelFitter<M> fitter) Constructor.- Parameters:
bestModel- best model parametersbestInliers- list of points used to determine the best model parametersfitter- mathematical model fitter used by RANSAC algorithm
-
-
Method Details
-
getBestModel
Get the best model parameters.- Returns:
- the best model parameters
-
getBestInliers
Get the list of points used to determine the best model parameters.- Returns:
- the list of points used to determine the best model parameters
-
filterPointsBelowThreshold
Finds the points below a given threshold based on the computed best model parameters.- Parameters:
points- input list of pointsthreshold- threshold to use- Returns:
- the list of points below the given threshold based on the computed best model parameters (can be empty if the all points are above the threshold or if no best model has been found)
-