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 double
Best median of error found so far taking into account all provided samples.private double
Estimated threshold to determine whether samples are inliers or not.private BitSet
Inliers considering LMedS model.private BitSet
Inliers considering MSAC model.private boolean
Indicates whether LMedS or MSAC inlier model is enabled.private double
Median of error found on current iteration among all provided samples.private boolean
Indicates whether median residual computed in current iteration has improved respect to previous iterations.private double
Standard 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.PROMedSInliersData
Creates a copy of inlier data.(package private) double
Returns best median of error found so far taking into account all provided samples.double
Returns 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) BitSet
Returns inliers considering LMedS model.(package private) BitSet
Returns inliers considering MSAC model.(package private) double
Returns standard deviation of error among all provided samples respect to currently estimated result.(package private) boolean
Returns boolean indicating whether LMedS or MSAC inlier model is enabled.(package private) boolean
Returns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.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.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:
getInliers
in 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.
-