Class LMedSRobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorTest
java.lang.Object
com.irurueta.navigation.inertial.calibration.magnetometer.LMedSRobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorTest
- All Implemented Interfaces:
RobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorListener
class LMedSRobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorTest
extends Object
implements RobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate intprivate intprivate intprivate intprivate static final Calendarprivate static final longprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final Calendarprivate static final longprivate static final doubleprivate static final intprivate static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertEstimatedResult(com.irurueta.algebra.Matrix mm, RobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibrator calibrator) private static voidcheckCommonAxisCovariance(com.irurueta.algebra.Matrix covariance) private static voidcheckGeneralCovariance(com.irurueta.algebra.Matrix covariance) private static voidprivate static com.irurueta.navigation.frames.NEDPositioncreatePosition(com.irurueta.statistics.UniformRandomizer randomizer) private static longcreateTimestamp(com.irurueta.statistics.UniformRandomizer randomizer) private static com.irurueta.navigation.frames.CoordinateTransformationgenerateBodyC(com.irurueta.statistics.UniformRandomizer randomizer) private static double[]generateHardIron(com.irurueta.statistics.UniformRandomizer randomizer) private static StandardDeviationBodyMagneticFluxDensitygenerateMeasure(double[] hardIron, com.irurueta.algebra.Matrix softIron, WMMEarthMagneticFluxDensityEstimator wmmEstimator, com.irurueta.statistics.GaussianRandomizer noiseRandomizer, com.irurueta.navigation.frames.NEDPosition position, Date timestamp, com.irurueta.navigation.frames.CoordinateTransformation cnb) private static BodyMagneticFluxDensitygenerateMeasuredMagneticFluxDensity(BodyMagneticFluxDensity input, double[] hardIron, com.irurueta.algebra.Matrix softIron) private static List<StandardDeviationBodyMagneticFluxDensity> generateMeasures(double[] hardIron, com.irurueta.algebra.Matrix softIron, int numberOfMeasurements, WMMEarthMagneticFluxDensityEstimator wmmEstimator, com.irurueta.statistics.UniformRandomizer randomizer, com.irurueta.navigation.frames.NEDPosition position, Date timestamp) private static com.irurueta.algebra.Matrixprivate static com.irurueta.algebra.Matrixprivate static NEDMagneticFluxDensitygetMagneticFluxDensityAtPosition(com.irurueta.navigation.frames.NEDPosition position, double year) voidvoidonCalibrateNextIteration(RobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibrator calibrator, int iteration) voidonCalibrateProgressChange(RobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibrator calibrator, float progress) voidprivate voidreset()(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void
-
Field Details
-
MIN_HARD_IRON
private static final double MIN_HARD_IRON- See Also:
-
MAX_HARD_IRON
private static final double MAX_HARD_IRON- See Also:
-
MIN_SOFT_IRON
private static final double MIN_SOFT_IRON- See Also:
-
MAX_SOFT_IRON
private static final double MAX_SOFT_IRON- See Also:
-
MIN_ANGLE_DEGREES
private static final double MIN_ANGLE_DEGREES- See Also:
-
MAX_ANGLE_DEGREES
private static final double MAX_ANGLE_DEGREES- See Also:
-
MIN_LATITUDE_DEGREES
private static final double MIN_LATITUDE_DEGREES- See Also:
-
MAX_LATITUDE_DEGREES
private static final double MAX_LATITUDE_DEGREES- See Also:
-
MIN_LONGITUDE_DEGREES
private static final double MIN_LONGITUDE_DEGREES- See Also:
-
MAX_LONGITUDE_DEGREES
private static final double MAX_LONGITUDE_DEGREES- See Also:
-
MIN_HEIGHT_METERS
private static final double MIN_HEIGHT_METERS- See Also:
-
MAX_HEIGHT_METERS
private static final double MAX_HEIGHT_METERS- See Also:
-
MAGNETOMETER_NOISE_STD
private static final double MAGNETOMETER_NOISE_STD- See Also:
-
ABSOLUTE_ERROR
private static final double ABSOLUTE_ERROR- See Also:
-
VERY_LARGE_ABSOLUTE_ERROR
private static final double VERY_LARGE_ABSOLUTE_ERROR- See Also:
-
MEASUREMENT_NUMBER
private static final int MEASUREMENT_NUMBER- See Also:
-
OUTLIER_PERCENTAGE
private static final int OUTLIER_PERCENTAGE- See Also:
-
THRESHOLD
private static final double THRESHOLD- See Also:
-
OUTLIER_ERROR_FACTOR
private static final double OUTLIER_ERROR_FACTOR- See Also:
-
TIMES
private static final int TIMES- See Also:
-
START_CALENDAR
-
END_CALENDAR
-
START_TIMESTAMP_MILLIS
private static final long START_TIMESTAMP_MILLIS -
END_TIMESTAMP_MILLIS
private static final long END_TIMESTAMP_MILLIS -
calibrateStart
private int calibrateStart -
calibrateEnd
private int calibrateEnd -
calibrateNextIteration
private int calibrateNextIteration -
calibrateProgressChange
private int calibrateProgressChange
-
-
Constructor Details
-
LMedSRobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorTest
LMedSRobustKnownHardIronMagneticFluxDensityNormMagnetometerCalibratorTest()
-
-
Method Details
-
testConstructor1
@Test void testConstructor1() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor2
@Test void testConstructor2() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor3
@Test void testConstructor3() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor4
@Test void testConstructor4() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor5
@Test void testConstructor5() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor6
@Test void testConstructor6() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor7
@Test void testConstructor7() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor8
@Test void testConstructor8() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor9
@Test void testConstructor9() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor10
@Test void testConstructor10() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor11
@Test void testConstructor11() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor12
@Test void testConstructor12() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor13
@Test void testConstructor13() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor14
@Test void testConstructor14() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor15
@Test void testConstructor15() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor16
@Test void testConstructor16() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor17
@Test void testConstructor17() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor18
@Test void testConstructor18() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor19
@Test void testConstructor19() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor20
@Test void testConstructor20() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor21
@Test void testConstructor21() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor22
@Test void testConstructor22() throws com.irurueta.algebra.WrongSizeException- Throws:
com.irurueta.algebra.WrongSizeException
-
testConstructor23
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor24
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor25
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor26
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor27
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor28
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor29
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor30
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor31
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor32
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor33
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor34
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor35
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor36
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor37
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor38
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor39
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor40
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor41
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor42
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor43
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testConstructor44
- Throws:
com.irurueta.algebra.WrongSizeExceptionIOException
-
testGetSetStopThreshold
@Test void testGetSetStopThreshold() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetGroundTruthMagneticFluxDensityNorm1
@Test void testGetSetGroundTruthMagneticFluxDensityNorm1() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetGroundTruthMagneticFluxDensityNorm2
@Test void testGetSetGroundTruthMagneticFluxDensityNorm2() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronX
@Test void testGetSetHardIronX() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronY
@Test void testGetSetHardIronY() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronZ
@Test void testGetSetHardIronZ() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronXAsMagneticFluxDensity
@Test void testGetSetHardIronXAsMagneticFluxDensity() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronYAsMagneticFluxDensity
@Test void testGetSetHardIronYAsMagneticFluxDensity() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronZAsMagneticFluxDensity
@Test void testGetSetHardIronZAsMagneticFluxDensity() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testSetHardIronCoordinates1
@Test void testSetHardIronCoordinates1() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testSetHardIronCoordinates2
@Test void testSetHardIronCoordinates2() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronAsTriad
@Test void testGetSetHardIronAsTriad() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialSx
@Test void testGetSetInitialSx() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialSy
@Test void testGetSetInitialSy() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialSz
@Test void testGetSetInitialSz() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMxy
@Test void testGetSetInitialMxy() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMxz
@Test void testGetSetInitialMxz() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMyx
@Test void testGetSetInitialMyx() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMyz
@Test void testGetSetInitialMyz() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMzx
@Test void testGetSetInitialMzx() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetInitialMzy
@Test void testGetSetInitialMzy() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testSetInitialScalingFactors
@Test void testSetInitialScalingFactors() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testSetInitialCrossCouplingErrors
@Test void testSetInitialCrossCouplingErrors() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testSetInitialScalingFactorsAndCrossCouplingErrors
@Test void testSetInitialScalingFactorsAndCrossCouplingErrors() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIron
@Test void testGetSetHardIron() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetHardIronAsMatrix
@Test void testGetSetHardIronAsMatrix() throws com.irurueta.algebra.WrongSizeException, com.irurueta.navigation.LockedException- Throws:
com.irurueta.algebra.WrongSizeExceptioncom.irurueta.navigation.LockedException
-
testGetSetInitialMm
@Test void testGetSetInitialMm() throws com.irurueta.algebra.WrongSizeException, com.irurueta.navigation.LockedException- Throws:
com.irurueta.algebra.WrongSizeExceptioncom.irurueta.navigation.LockedException
-
testGetSetMeasurements
@Test void testGetSetMeasurements() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testIsSetCommonAxisUsed
@Test void testIsSetCommonAxisUsed() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetListener
@Test void testGetSetListener() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetMinimumRequiredMeasurements
@Test void testGetMinimumRequiredMeasurements() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testIsReady
- Throws:
com.irurueta.navigation.LockedExceptionIOException
-
testGetSetProgressDelta
@Test void testGetSetProgressDelta() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetConfidence
@Test void testGetSetConfidence() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetMaxIterations
@Test void testGetSetMaxIterations() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testIsSetResultRefined
@Test void testIsSetResultRefined() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testIsSetCovarianceKept
@Test void testIsSetCovarianceKept() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetQualityScores
@Test void testGetSetQualityScores() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testGetSetPreliminarySubsetSize
@Test void testGetSetPreliminarySubsetSize() throws com.irurueta.navigation.LockedException- Throws:
com.irurueta.navigation.LockedException
-
testCalibrateGeneralNoNoiseInlier
@Test void testCalibrateGeneralNoNoiseInlier() throws IOException, com.irurueta.navigation.LockedException, com.irurueta.navigation.NotReadyException- Throws:
IOExceptioncom.irurueta.navigation.LockedExceptioncom.irurueta.navigation.NotReadyException
-
testCalibrateCommonAxisNoNoiseInlier
@Test void testCalibrateCommonAxisNoNoiseInlier() throws IOException, com.irurueta.navigation.LockedException, CalibrationException, com.irurueta.navigation.NotReadyException- Throws:
IOExceptioncom.irurueta.navigation.LockedExceptionCalibrationExceptioncom.irurueta.navigation.NotReadyException
-
testCalibrateGeneralWithInlierNoise
@Test void testCalibrateGeneralWithInlierNoise() throws IOException, com.irurueta.navigation.LockedException, com.irurueta.navigation.NotReadyException- Throws:
IOExceptioncom.irurueta.navigation.LockedExceptioncom.irurueta.navigation.NotReadyException
-
testCalibrateCommonAxisWithInlierNoise
@Test void testCalibrateCommonAxisWithInlierNoise() throws IOException, com.irurueta.navigation.LockedException, CalibrationException, com.irurueta.navigation.NotReadyException- Throws:
IOExceptioncom.irurueta.navigation.LockedExceptionCalibrationExceptioncom.irurueta.navigation.NotReadyException
-
testCalibrateGeneralNoRefinement
@Test void testCalibrateGeneralNoRefinement() throws IOException, com.irurueta.navigation.LockedException, CalibrationException, com.irurueta.navigation.NotReadyException- Throws:
IOExceptioncom.irurueta.navigation.LockedExceptionCalibrationExceptioncom.irurueta.navigation.NotReadyException
-
reset
private void reset() -
checkCommonAxisCovariance
private static void checkCommonAxisCovariance(com.irurueta.algebra.Matrix covariance) -
checkGeneralCovariance
private static void checkGeneralCovariance(com.irurueta.algebra.Matrix covariance) -
generateBodyC
private static com.irurueta.navigation.frames.CoordinateTransformation generateBodyC(com.irurueta.statistics.UniformRandomizer randomizer) -
generateHardIron
private static double[] generateHardIron(com.irurueta.statistics.UniformRandomizer randomizer) -
generateSoftIronGeneral
private static com.irurueta.algebra.Matrix generateSoftIronGeneral() -
generateSoftIronCommonAxis
private static com.irurueta.algebra.Matrix generateSoftIronCommonAxis() -
createPosition
private static com.irurueta.navigation.frames.NEDPosition createPosition(com.irurueta.statistics.UniformRandomizer randomizer) -
createTimestamp
private static long createTimestamp(com.irurueta.statistics.UniformRandomizer randomizer)
-