Class RansacFitterOutputs<M>

java.lang.Object
org.hipparchus.fitting.ransac.RansacFitterOutputs<M>
Type Parameters:
M - mathematical model representing the parameters to estimate

public class RansacFitterOutputs<M> extends Object
Class containing the best estimate of the model parameters.
Since:
4.1
  • Constructor Details

    • RansacFitterOutputs

      public RansacFitterOutputs(Optional<M> bestModel, List<Fittable> bestInliers, IModelFitter<M> fitter)
      Constructor.
      Parameters:
      bestModel - best model parameters
      bestInliers - list of points used to determine the best model parameters
      fitter - mathematical model fitter used by RANSAC algorithm
  • Method Details

    • getBestModel

      public Optional<M> getBestModel()
      Get the best model parameters.
      Returns:
      the best model parameters
    • getBestInliers

      public List<Fittable> 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

      public List<Fittable> filterPointsBelowThreshold(List<Fittable> points, double threshold)
      Finds the points below a given threshold based on the computed best model parameters.
      Parameters:
      points - input list of points
      threshold - 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)