Class PROSACRobustRssiRadioSourceEstimator3D<S extends RadioSource>
java.lang.Object
com.irurueta.navigation.indoor.radiosource.RobustRadioSourceEstimator<com.irurueta.geometry.Point3D,RssiReadingLocated<S,com.irurueta.geometry.Point3D>,RobustRssiRadioSourceEstimatorListener<S,com.irurueta.geometry.Point3D>>
com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator<S,com.irurueta.geometry.Point3D>
com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator3D<S>
com.irurueta.navigation.indoor.radiosource.PROSACRobustRssiRadioSourceEstimator3D<S>
- Type Parameters:
S- aRadioSourcetype.
public class PROSACRobustRssiRadioSourceEstimator3D<S extends RadioSource>
extends RobustRssiRadioSourceEstimator3D<S>
Robustly estimate 3D position, transmitted power and path-loss exponent of a radio source
(e.g. Wi-Fi access point or bluetooth beacon), by discarding outliers using PROSAC
algorithm and assuming that the access point emits isotropically following the
expression below:
Pr = Pt*Gt*Gr*lambda^2 / (4*pi*d)^2,
where Pr is the received power (expressed in mW),
Gt is the Gain of the transmission antenna
Gr is the Gain of the receiver antenna
d is the distance between emitter and receiver
and lambda is the wavelength and is equal to: lambda = c / f,
where c is the speed of light
and f is the carrier frequency of the radio signal.
Because usually information about the antenna of the radio source cannot be
retrieved (because many measurements are made on unknown access points where
physical access is not possible), this implementation will estimate the
equivalent transmitted power as: Pte = Pt * Gt * Gr.
If RssiReadings contain RSSI standard deviations, those values will be used,
otherwise it will be assumed an RSSI standard deviation of 1 dB.
Implementations of this class should be able to detect and discard outliers in
order to find the best solution.
IMPORTANT: When using this class estimation can be done using a combination of radio source position, transmitted power and path loss exponent. However enabling all three estimations usually achieves inaccurate results. When using this class, estimation must be of at least one parameter (position, transmitted power or path loss exponent) when initial values are provided for the other two, and at most it should consist of two parameters (either position and transmitted power, position and path loss exponent or transmitted power and path loss exponent), providing an initial value for the remaining parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator
RobustRssiRadioSourceEstimator.Solution<P extends com.irurueta.geometry.Point<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIndicates whether inliers must be computed and kept.private booleanIndicates whether residuals must be computed and kept.static final booleanIndicates that by default inliers will only be computed but not kept.static final booleanIndicates that by default residuals will only be computed but not kept.static final doubleConstant defining default threshold to determine whether samples are inliers or not.static final doubleMinimum value that can be set as threshold.private double[]Quality scores corresponding to each provided sample.private doubleThreshold to determine whether samples are inliers or not when testing possible solutions.Fields inherited from class com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator3D
innerEstimatorFields inherited from class com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator
estimatedPathLossExponent, estimatedPathLossExponentVariance, estimatedTransmittedPowerdBm, estimatedTransmittedPowerVariance, initialPathLossExponent, initialPosition, initialTransmittedPowerdBm, pathLossEstimationEnabled, positionEstimationEnabled, transmittedPowerEstimationEnabledFields inherited from class com.irurueta.navigation.indoor.radiosource.RobustRadioSourceEstimator
confidence, covariance, DEFAULT_CONFIDENCE, DEFAULT_KEEP_COVARIANCE, DEFAULT_MAX_ITERATIONS, DEFAULT_PROGRESS_DELTA, DEFAULT_REFINE_RESULT, DEFAULT_ROBUST_METHOD, estimatedPosition, estimatedPositionCovariance, inliersData, keepCovariance, listener, locked, MAX_CONFIDENCE, MAX_PROGRESS_DELTA, maxIterations, MIN_CONFIDENCE, MIN_ITERATIONS, MIN_PROGRESS_DELTA, preliminarySubsetSize, progressDelta, readings, refineResult -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm) Constructor.PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm, RobustRssiRadioSourceEstimatorListener<S, com.irurueta.geometry.Point3D> listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidestimate()Robustly estimates position, transmitted power and path-loss exponent for a radio source.com.irurueta.numerical.robust.RobustEstimatorMethodReturns method being used for robust estimation.double[]Returns quality scores corresponding to each pair of positions and distances (i.e. sample).doubleGets threshold to determine whether samples are inliers or not when testing possible solutions.private voidinternalSetQualityScores(double[] qualityScores) Sets quality scores corresponding to each provided sample.booleanIndicates whether inliers must be computed and kept.booleanIndicates whether residuals must be computed and kept.booleanisReady()Indicates whether solver is ready to find a solution.voidsetComputeAndKeepInliersEnabled(boolean computeAndKeepInliers) Specifies whether inliers must be computed and kept.voidsetComputeAndKeepResidualsEnabled(boolean computeAndKeepResiduals) Specifies whether residuals must be computed and kept.voidsetQualityScores(double[] qualityScores) Sets quality scores corresponding to each pair of positions and distances (i.e. sample).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.radiosource.RobustRssiRadioSourceEstimator3D
attemptRefine, 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, 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, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, getEstimatedRadioSource, getMinReadings, getNumberOfDimensions, solvePreliminarySolutionsMethods inherited from class com.irurueta.navigation.indoor.radiosource.RobustRssiRadioSourceEstimator
getEstimatedPathLossExponent, getEstimatedPathLossExponentVariance, getEstimatedTransmittedPower, getEstimatedTransmittedPowerdBm, getEstimatedTransmittedPowerVariance, getInitialPathLossExponent, getInitialPosition, getInitialTransmittedPower, getInitialTransmittedPowerdBm, isPathLossEstimationEnabled, isPositionEstimationEnabled, isTransmittedPowerEstimationEnabled, residual, setInitialPathLossExponent, setInitialPosition, setInitialTransmittedPower, setInitialTransmittedPowerdBm, setPathLossEstimationEnabled, setPositionEstimationEnabled, setTransmittedPowerEstimationEnabledMethods inherited from class com.irurueta.navigation.indoor.radiosource.RobustRadioSourceEstimator
areValidReadings, getConfidence, getCovariance, getEstimatedPosition, getEstimatedPositionCovariance, getInliersData, getListener, getMaxIterations, getPreliminarySubsetSize, getProgressDelta, getReadings, internalSetReadings, isCovarianceKept, isLocked, isResultRefined, setConfidence, setCovarianceKept, setListener, setMaxIterations, setPreliminarySubsetSize, setProgressDelta, setReadings, setResultRefined
-
Field Details
-
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLDConstant defining default threshold to determine whether samples are inliers or not.- See Also:
-
MIN_THRESHOLD
public static final double MIN_THRESHOLDMinimum value that can be set as threshold. Threshold must be strictly greater than 0.0.- See Also:
-
DEFAULT_COMPUTE_AND_KEEP_INLIERS
public static final boolean DEFAULT_COMPUTE_AND_KEEP_INLIERSIndicates that by default inliers will only be computed but not kept.- See Also:
-
DEFAULT_COMPUTE_AND_KEEP_RESIDUALS
public static final boolean DEFAULT_COMPUTE_AND_KEEP_RESIDUALSIndicates that by default residuals will only be computed but not kept.- See Also:
-
threshold
private double thresholdThreshold 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. -
computeAndKeepInliers
private boolean computeAndKeepInliersIndicates whether inliers must be computed and kept. -
computeAndKeepResiduals
private boolean computeAndKeepResidualsIndicates whether residuals must be computed and kept. -
qualityScores
private double[] qualityScoresQuality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.
-
-
Constructor Details
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D()Constructor. -
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
readings- signal readings belonging to the same radio source.- Throws:
IllegalArgumentException- if readings are not valid.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.- Throws:
IllegalArgumentException- if readings are not valid.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition) Constructor.- Parameters:
initialPosition- initial position to start the estimation of radio source position.
-
PROSACRobustRssiRadioSourceEstimator3D
Constructor.- Parameters:
initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's)
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
readings- signal readings belonging to the same radio source.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's)- Throws:
IllegalArgumentException- if readings are not valid.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).- Throws:
IllegalArgumentException- if readings are not valid.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.- Parameters:
initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).initialPathLossExponent- initial path loss exponent. A typical value is 2.0.- Throws:
IllegalArgumentException- if readings are not valid.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.- Parameters:
initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).initialPathLossExponent- initial path loss exponent. A typical value is 2.0.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores) Constructor.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.- Throws:
IllegalArgumentException- if quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.readings- signal readings belonging to the same radio source.- Throws:
IllegalArgumentException- if readings are not valid, quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.- Throws:
IllegalArgumentException- if readings are not valid, quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition) Constructor.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.initialPosition- initial position to start the estimation of radio source position.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, Double initialTransmittedPowerdBm) Constructor.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.initialTransmittedPowerdBm- initial transmitted power to start the estimation of access point transmitted power (expressed in dBm's)- Throws:
IllegalArgumentException- if quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, Double initialTransmittedPowerdBm) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.readings- Wi-Fi signal readings belonging to the same radio source.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's)- Throws:
IllegalArgumentException- if readings are not valid, quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).- Throws:
IllegalArgumentException- if readings are not valid, quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm) Constructor.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).- Throws:
IllegalArgumentException- if quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, List<? extends RssiReadingLocated<S, com.irurueta.geometry.Point3D>> readings, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor. Sets signal readings belonging to the same radio source.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.readings- signal readings belonging to the same radio source.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).initialPathLossExponent- initial path loss exponent. A typical value is 2.0.- Throws:
IllegalArgumentException- if readings are not valid, quality scores is null, or length of quality scores is less than required minimum.
-
PROSACRobustRssiRadioSourceEstimator3D
public PROSACRobustRssiRadioSourceEstimator3D(double[] qualityScores, com.irurueta.geometry.Point3D initialPosition, Double initialTransmittedPowerdBm, double initialPathLossExponent) Constructor.- Parameters:
qualityScores- quality scores corresponding to each provided sample. The larger the score value the better the quality of the sample.initialPosition- initial position to start the estimation of radio source position.initialTransmittedPowerdBm- initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's).initialPathLossExponent- initial path loss exponent. A typical value is 2.0.
-
-
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 solver is locked.
-
getQualityScores
public double[] getQualityScores()Returns quality scores corresponding to each pair of positions and distances (i.e. sample). The larger the score value the better the quality of the sample. This implementation always returns null. Subclasses using quality scores must implement proper behavior.- Overrides:
getQualityScoresin classRobustRadioSourceEstimator<com.irurueta.geometry.Point3D,RssiReadingLocated<S extends RadioSource, com.irurueta.geometry.Point3D>, RobustRssiRadioSourceEstimatorListener<S extends RadioSource, com.irurueta.geometry.Point3D>> - Returns:
- quality scores corresponding to each sample.
-
setQualityScores
public void setQualityScores(double[] qualityScores) throws com.irurueta.navigation.LockedException Sets quality scores corresponding to each pair of positions and distances (i.e. sample). The larger the score value the better the quality of the sample. This implementation makes no action. Subclasses using quality scores must implement proper behaviour.- Overrides:
setQualityScoresin classRobustRadioSourceEstimator<com.irurueta.geometry.Point3D,RssiReadingLocated<S extends RadioSource, com.irurueta.geometry.Point3D>, RobustRssiRadioSourceEstimatorListener<S extends RadioSource, com.irurueta.geometry.Point3D>> - Parameters:
qualityScores- quality scores corresponding to each pair of matched points.- Throws:
IllegalArgumentException- if provided quality scores length is smaller than minimum required samples.com.irurueta.navigation.LockedException- if robust solver is locked because an estimation is already in progress.
-
isReady
public boolean isReady()Indicates whether solver is ready to find a solution.- Overrides:
isReadyin classRobustRssiRadioSourceEstimator<S extends RadioSource,com.irurueta.geometry.Point3D> - Returns:
- true if solver is ready, false otherwise.
-
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 solver is locked.
-
isComputeAndKeepResidualsEnabled
public boolean isComputeAndKeepResidualsEnabled()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 solver is locked.
-
estimate
public void estimate() throws com.irurueta.navigation.LockedException, com.irurueta.navigation.NotReadyException, com.irurueta.numerical.robust.RobustEstimatorExceptionRobustly estimates position, transmitted power and path-loss exponent for a radio source.- Specified by:
estimatein classRobustRadioSourceEstimator<com.irurueta.geometry.Point3D,RssiReadingLocated<S extends RadioSource, com.irurueta.geometry.Point3D>, RobustRssiRadioSourceEstimatorListener<S extends RadioSource, com.irurueta.geometry.Point3D>> - Throws:
com.irurueta.navigation.LockedException- if instance is busy during estimation.com.irurueta.navigation.NotReadyException- if estimator is not ready.com.irurueta.numerical.robust.RobustEstimatorException- if estimation fails for any reason (i.e. numerical instability, no solution available, etc).
-
getMethod
public com.irurueta.numerical.robust.RobustEstimatorMethod getMethod()Returns method being used for robust estimation.- Specified by:
getMethodin classRobustRssiRadioSourceEstimator<S extends RadioSource,com.irurueta.geometry.Point3D> - Returns:
- method being used for robust estimation.
-
internalSetQualityScores
private void internalSetQualityScores(double[] qualityScores) Sets quality scores corresponding to each provided sample. This method is used internally and does not check whether instance is locked or not.- Parameters:
qualityScores- quality scores to be set.- Throws:
IllegalArgumentException- if provided quality scores length is smaller than required minimum.
-