Interface LMedSRobustEstimatorListener<T>

Type Parameters:
T - type of object to be estimated.
All Superinterfaces:
RobustEstimatorListener<T>
All Known Subinterfaces:
MSACRobustEstimatorListener<T>, PROMedSRobustEstimatorListener<T>, PROSACRobustEstimatorListener<T>, RANSACRobustEstimatorListener<T>

public interface LMedSRobustEstimatorListener<T> extends RobustEstimatorListener<T>
Listener to get data samples and residuals for LMedS method.
  • Method Details

    • getTotalSamples

      int getTotalSamples()
      Returns total number of samples to be randomly processed.
      Returns:
      total number of samples.
    • getSubsetSize

      int getSubsetSize()
      Returns size of subsets of samples to be selected.
      Returns:
      size of subsets of samples to be selected.
    • estimatePreliminarSolutions

      void estimatePreliminarSolutions(int[] samplesIndices, List<T> solutions)
      Estimates a list of possible preliminary solutions to be used during an iteration of LMedS robust estimator.
      Parameters:
      samplesIndices - indices of random subset of samples that have been picked.
      solutions - list where possible preliminary solutions to be used during an iteration of LMedS robust estimator will be stored. Provided list will always be empty, and it is up to the implementor to fill it with preliminary solutions based on provided sample indices.
    • computeResidual

      double computeResidual(T currentEstimation, int i)
      Computes residual for sample located at i-th position using estimation on current iteration.
      Parameters:
      currentEstimation - a preliminar estimation that has been found for current iteration.
      i - position of sample to be checked.
      Returns:
      residual for i-th sample.