Package com.irurueta.numerical.robust
Interface RobustEstimatorListener<T>
- Type Parameters:
T- type of instance being estimated.
- All Known Subinterfaces:
LMedSRobustEstimatorListener<T>,MSACRobustEstimatorListener<T>,PROMedSRobustEstimatorListener<T>,PROSACRobustEstimatorListener<T>,RANSACRobustEstimatorListener<T>
public interface RobustEstimatorListener<T>
Listener to be notified of events on a robust estimator such as when
estimation starts, ends or when progress changes.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisReady()Called to determine when a robust estimator is ready to start estimation.voidonEstimateEnd(RobustEstimator<T> estimator) Called when estimation ends.voidonEstimateNextIteration(RobustEstimator<T> estimator, int iteration) Called when estimator iterates to refine a possible solution.voidonEstimateProgressChange(RobustEstimator<T> estimator, float progress) Called when estimation progress changes significantly.voidonEstimateStart(RobustEstimator<T> estimator) Called when estimation starts.
-
Method Details
-
isReady
boolean isReady()Called to determine when a robust estimator is ready to start estimation. This is true when all required data to start estimation is available- Returns:
- true if robust estimator is ready to start estimation, false otherwise.
-
onEstimateStart
Called when estimation starts.- Parameters:
estimator- reference to robust estimator.
-
onEstimateEnd
Called when estimation ends.- Parameters:
estimator- reference to robust estimator.
-
onEstimateNextIteration
Called when estimator iterates to refine a possible solution.- Parameters:
estimator- reference to robust estimator.iteration- current iteration.
-
onEstimateProgressChange
Called when estimation progress changes significantly.- Parameters:
estimator- reference to robust estimator.progress- progress of estimation expressed as a value between 0.0 and 1.0.
-