Package com.irurueta.numerical.robust
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>
Listener to get data samples and residuals for LMedS method.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeResidual
(T currentEstimation, int i) Computes residual for sample located at i-th position using estimation on current iteration.void
estimatePreliminarSolutions
(int[] samplesIndices, List<T> solutions) Estimates a list of possible preliminary solutions to be used during an iteration of LMedS robust estimator.int
Returns size of subsets of samples to be selected.int
Returns total number of samples to be randomly processed.Methods inherited from interface com.irurueta.numerical.robust.RobustEstimatorListener
isReady, onEstimateEnd, onEstimateNextIteration, onEstimateProgressChange, onEstimateStart
-
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
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
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.
-