Package com.irurueta.numerical.robust
Class LMedSRobustEstimator.LMedSInliersData
java.lang.Object
com.irurueta.numerical.robust.InliersData
com.irurueta.numerical.robust.LMedSRobustEstimator.LMedSInliersData
- Enclosing class:
- LMedSRobustEstimator<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
Efficiently stores which samples are considered inliers and which ones aren't.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 TypeMethodDescriptiondouble
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.double
Returns standard deviation of error among all provided samples respect to currently estimated result.boolean
Returns boolean indicating whether median residual computed in current iteration has improved respect to previous iterations.protected void
update
(double bestMedianResidual, double standardDeviation, BitSet inliers, double[] residuals, int numInliers, 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. -
inliers
Efficiently stores which samples are considered inliers and which ones aren't. -
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
-
LMedSInliersData
protected LMedSInliersData(int totalSamples) Constructor.- Parameters:
totalSamples
- total number of samples.
-
-
Method Details
-
getBestMedianResidual
public 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
public 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.
-
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.
-
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
public 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, BitSet inliers, double[] residuals, int numInliers, 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.inliers
- efficiently stores which samples are considered inliers and which ones aren't.residuals
- residuals obtained for each sample of data.numInliers
- number of inliers found on current iteration.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.
-