Package com.irurueta.numerical.robust
Class PROMedSRobustEstimator.PROMedSInliersData
java.lang.Object
com.irurueta.numerical.robust.InliersData
com.irurueta.numerical.robust.PROMedSRobustEstimator.PROMedSInliersData
- Enclosing class:
- PROMedSRobustEstimator<T>
Contains data related to inliers estimated in one iteration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleBest median of error found so far taking into account all provided samples.private doubleEstimated threshold to determine whether samples are inliers or not.private BitSetInliers considering LMedS model.private BitSetInliers considering MSAC model.private booleanIndicates whether LMedS or MSAC inlier model is enabled.private doubleMedian of error found on current iteration among all provided samples.private booleanIndicates whether median residual computed in current iteration has improved respect to previous iterations.private doubleStandard deviation of error among all provided samples respect to currently estimated result.Fields inherited from class com.irurueta.numerical.robust.InliersData
numInliers, residuals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) PROMedSRobustEstimator.PROMedSInliersDataCreates a copy of inlier data.(package private) doubleReturns best median of error found so far taking into account all provided samples.doubleReturns estimated threshold to determine whether samples are inliers or not.Returns efficient array indicating which samples are considered inliers and which ones aren't.(package private) BitSetReturns inliers considering LMedS model.(package private) BitSetReturns inliers considering MSAC model.(package private) doubleReturns standard deviation of error among all provided samples respect to currently estimated result.(package private) booleanReturns boolean indicating whether LMedS or MSAC inlier model is enabled.(package private) booleanReturns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.protected voidupdate(double bestMedianResidual, double standardDeviation, boolean lmedsInlierModelEnabled, double[] residuals, int numInliers, double medianResidual, double estimatedThreshold, boolean medianResidualImproved) Updates data contained in this instance.Methods inherited from class com.irurueta.numerical.robust.InliersData
getNumInliers, getResiduals
-
Field Details
-
bestMedianResidual
private double bestMedianResidualBest median of error found so far taking into account all provided samples. -
standardDeviation
private double standardDeviationStandard deviation of error among all provided samples respect to currently estimated result. -
inliersLmeds
Inliers considering LMedS model. -
inliersMsac
Inliers considering MSAC model. -
lmedsInlierModelEnabled
private boolean lmedsInlierModelEnabledIndicates whether LMedS or MSAC inlier model is enabled. -
medianResidual
private double medianResidualMedian of error found on current iteration among all provided samples. -
estimatedThreshold
private double estimatedThresholdEstimated threshold to determine whether samples are inliers or not. -
medianResidualImproved
private boolean medianResidualImprovedIndicates whether median residual computed in current iteration has improved respect to previous iterations.
-
-
Constructor Details
-
PROMedSInliersData
PROMedSInliersData(int totalSamples) Constructor.- Parameters:
totalSamples- total number of samples.
-
-
Method Details
-
getInliers
Returns efficient array indicating which samples are considered inliers and which ones aren't.- Specified by:
getInliersin classInliersData- Returns:
- array indicating which samples are considered inliers and which ones aren't.
-
createCopy
PROMedSRobustEstimator.PROMedSInliersData createCopy()Creates a copy of inlier data.- Returns:
- copy of inlier data.
-
getBestMedianResidual
double getBestMedianResidual()Returns best median of error found so far taking into account all provided samples.- Returns:
- best median of error found so far taking into account all provided samples.
-
getStandardDeviation
double getStandardDeviation()Returns standard deviation of error among all provided samples respect to currently estimated result.- Returns:
- standard deviation of error among all provided samples respect to currently estimated result.
-
getInliersLMedS
BitSet getInliersLMedS()Returns inliers considering LMedS model.- Returns:
- inliers considering LMedS model.
-
getInliersMSAC
BitSet getInliersMSAC()Returns inliers considering MSAC model.- Returns:
- inliers considering MSAC model.
-
isLMedSInlierModelEnabled
boolean isLMedSInlierModelEnabled()Returns boolean indicating whether LMedS or MSAC inlier model is enabled. If true, estimated threshold was used to determine inliers, if false only median of residuals was used.- Returns:
- true if LMedS model is used, false if MSAC model is used.
-
getEstimatedThreshold
public double getEstimatedThreshold()Returns estimated threshold to determine whether samples are inliers or not.- Returns:
- estimated threshold to determine whether samples are inliers or not.
-
isMedianResidualImproved
boolean isMedianResidualImproved()Returns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.- Returns:
- true if median residual improved, false otherwise.
-
update
protected void update(double bestMedianResidual, double standardDeviation, boolean lmedsInlierModelEnabled, double[] residuals, int numInliers, double medianResidual, double estimatedThreshold, boolean medianResidualImproved) Updates data contained in this instance.- Parameters:
bestMedianResidual- best median of error found so far taking into account all provided samples.standardDeviation- standard deviation of error among all provided samples respect to currently estimated result.lmedsInlierModelEnabled- indicates whether the LMedS or MSAC inlier model is used.residuals- residuals obtained for each sample of data.numInliers- number of inliers found on current iteration.medianResidual- median of error found on current iteration among all provided samples.estimatedThreshold- estimated threshold to determine whether samples are inliers or not.medianResidualImproved- indicates whether median residual computed in current iteration has improved respect to previous iteration.
-