Class RANSACRobustRangingAndRssiPositionEstimator2D
java.lang.Object
com.irurueta.navigation.indoor.position.RobustPositionEstimator<com.irurueta.geometry.Point2D,RangingAndRssiReading<? extends RadioSource>,RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D>>
com.irurueta.navigation.indoor.position.RobustRangingAndRssiPositionEstimator<com.irurueta.geometry.Point2D>
com.irurueta.navigation.indoor.position.RobustRangingAndRssiPositionEstimator2D
com.irurueta.navigation.indoor.position.RANSACRobustRangingAndRssiPositionEstimator2D
public class RANSACRobustRangingAndRssiPositionEstimator2D
extends RobustRangingAndRssiPositionEstimator2D
Robustly estimates 2D position using located ranging+RSSI radio sources and their
ranging readings at unknown locations and using RANSAC algorithm to discard outliers.
This kind of estimator can be used to robustly determine the 2D position of a given
device by getting ranging+RSSI readings at an unknown location of different radio
sources whose 2D locations are known.
-
Field Summary
Fields inherited from class com.irurueta.navigation.indoor.position.RobustPositionEstimator
DEFAULT_EVENLY_DISTRIBUTE_READINGS, DEFAULT_ROBUST_METHOD, DEFAULT_USE_RADIO_SOURCE_POSITION_COVARIANCE, FALLBACK_DISTANCE_STANDARD_DEVIATION, fingerprint, laterationSolver, listener, preliminarySubsetSize, sources, trilaterationSolverListener -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RANSACRobustRangingAndRssiPositionEstimator2D(RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D> listener) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(RangingAndRssiFingerprint<? extends RadioSource, ? extends RangingAndRssiReading<? extends RadioSource>> fingerprint) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(RangingAndRssiFingerprint<? extends RadioSource, ? extends RangingAndRssiReading<? extends RadioSource>> fingerprint, RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D> listener) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(List<? extends RadioSourceLocated<com.irurueta.geometry.Point2D>> sources) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(List<? extends RadioSourceLocated<com.irurueta.geometry.Point2D>> sources, RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D> listener) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(List<? extends RadioSourceLocated<com.irurueta.geometry.Point2D>> sources, RangingAndRssiFingerprint<? extends RadioSource, ? extends RangingAndRssiReading<? extends RadioSource>> fingerprint) Constructor.RANSACRobustRangingAndRssiPositionEstimator2D(List<? extends RadioSourceLocated<com.irurueta.geometry.Point2D>> sources, RangingAndRssiFingerprint<? extends RadioSource, ? extends RangingAndRssiReading<? extends RadioSource>> fingerprint, RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D> listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.irurueta.numerical.robust.RobustEstimatorMethodReturns method being used for robust estimation.doubleGets threshold to determine whether samples are inliers or not when testing possible solutions.private voidinit()Initializes robust lateration solver.booleanIndicates whether inliers must be computed and kept.booleanIndicates whether residuals must be computed and kept.voidsetComputeAndKeepInliersEnabled(boolean computeAndKeepInliers) Specifies whether inliers must be computed and kept.voidsetComputeAndKeepResidualsEnabled(boolean computeAndKeepResiduals) Specifies whether residuals must be computed and kept.voidsetThreshold(double threshold) Sets threshold to determine whether samples are inliers or not when testing possible solutions.Methods inherited from class com.irurueta.navigation.indoor.position.RobustRangingAndRssiPositionEstimator2D
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, getMinRequiredSources, setPositionsDistancesDistanceStandardDeviationsAndQualityScoresMethods inherited from class com.irurueta.navigation.indoor.position.RobustPositionEstimator
buildPositionsDistancesDistanceStandardDeviationsAndQualityScores, estimate, getConfidence, getCovariance, getDistances, getDistanceStandardDeviations, getEstimatedPosition, getEvenlyDistributeReadings, getFallbackDistanceStandardDeviation, getFingerprint, getFingerprintReadingsQualityScores, getInitialPosition, getInliersData, getListener, getMaxIterations, getNumberOfDimensions, getPositions, getPreliminarySubsetSize, getProgressDelta, getSourceQualityScores, getSources, internalSetFingerprint, internalSetSources, isCovarianceKept, isHomogeneousLinearSolverUsed, isLinearSolverUsed, isLocked, isPreliminarySolutionRefined, isRadioSourcePositionCovarianceUsed, isReady, isResultRefined, setConfidence, setCovarianceKept, setEvenlyDistributeReadings, setFallbackDistanceStandardDeviation, setFingerprint, setFingerprintReadingsQualityScores, setHomogeneousLinearSolverUsed, setInitialPosition, setLinearSolverUsed, setListener, setMaxIterations, setPreliminarySolutionRefined, setPreliminarySubsetSize, setProgressDelta, setRadioSourcePositionCovarianceUsed, setResultRefined, setSourceQualityScores, setSources
-
Constructor Details
-
RANSACRobustRangingAndRssiPositionEstimator2D
public RANSACRobustRangingAndRssiPositionEstimator2D()Constructor. -
RANSACRobustRangingAndRssiPositionEstimator2D
public RANSACRobustRangingAndRssiPositionEstimator2D(List<? extends RadioSourceLocated<com.irurueta.geometry.Point2D>> sources) Constructor.- Parameters:
sources- located radio sources used for lateration.- Throws:
IllegalArgumentException- if provided sources is null or the number of provided sources is less than the required minimum.
-
-
Method Details
-
getThreshold
public double getThreshold()Gets threshold to determine whether samples are inliers or not when testing possible solutions. The threshold refers to the amount of error on distance between estimated position and distances provided for each sample.- Returns:
- threshold to determine whether samples are inliers or not.
-
setThreshold
public void setThreshold(double threshold) throws com.irurueta.navigation.LockedException Sets threshold to determine whether samples are inliers or not when testing possible solutions. The threshold refers to the amount of error on distance between estimated position and distances provided for each sample.- Parameters:
threshold- threshold to determine whether samples are inliers or not.- Throws:
IllegalArgumentException- if provided value is equal or less than zero.com.irurueta.navigation.LockedException- if this estimator is locked.
-
isComputeAndKeepInliersEnabled
public boolean isComputeAndKeepInliersEnabled()Indicates whether inliers must be computed and kept.- Returns:
- true if inliers must be computed and kept, false if inliers only need to be computed but not kept.
-
setComputeAndKeepInliersEnabled
public void setComputeAndKeepInliersEnabled(boolean computeAndKeepInliers) throws com.irurueta.navigation.LockedException Specifies whether inliers must be computed and kept.- Parameters:
computeAndKeepInliers- true if inliers must be computed and kept, false if inliers only need to be computed but not kept.- Throws:
com.irurueta.navigation.LockedException- if this estimator is locked.
-
isComputeAndKeepResiduals
public boolean isComputeAndKeepResiduals()Indicates whether residuals must be computed and kept.- Returns:
- true if residuals must be computed and kept, false if residuals only need to be computed but not kept.
-
setComputeAndKeepResidualsEnabled
public void setComputeAndKeepResidualsEnabled(boolean computeAndKeepResiduals) throws com.irurueta.navigation.LockedException Specifies whether residuals must be computed and kept.- Parameters:
computeAndKeepResiduals- true if residuals must be computed and kept, false if residuals only need to be computed but not kept.- Throws:
com.irurueta.navigation.LockedException- if this estimator is locked.
-
getMethod
public com.irurueta.numerical.robust.RobustEstimatorMethod getMethod()Returns method being used for robust estimation.- Specified by:
getMethodin classRobustPositionEstimator<com.irurueta.geometry.Point2D,RangingAndRssiReading<? extends RadioSource>, RobustRangingAndRssiPositionEstimatorListener<com.irurueta.geometry.Point2D>> - Returns:
- method being used for robust estimation.
-
init
private void init()Initializes robust lateration solver.
-