AccelerometerInternalCalibratorBuilder

constructor(measurements: List<StandardDeviationBodyKinematics>, robustPreliminarySubsetSize: Int, minimumRequiredMeasurements: Int, robustMethod: RobustEstimatorMethod? = null, robustConfidence: Double = StaticIntervalAccelerometerCalibrator.ROBUST_DEFAULT_CONFIDENCE, robustMaxIterations: Int = StaticIntervalAccelerometerCalibrator.ROBUST_DEFAULT_MAX_ITERATIONS, robustThreshold: Double? = null, robustThresholdFactor: Double = StaticIntervalAccelerometerCalibrator.DEFAULT_ROBUST_THRESHOLD_FACTOR, robustStopThresholdFactor: Double = StaticIntervalAccelerometerCalibrator.DEFAULT_ROBUST_STOP_THRESHOLD_FACTOR, location: Location? = null, gravityNorm: Double? = null, isGroundTruthInitialBias: Boolean = false, isCommonAxisUsed: Boolean = false, initialBiasX: Double? = null, initialBiasY: Double? = null, initialBiasZ: Double? = null, initialSx: Double = 0.0, initialSy: Double = 0.0, initialSz: Double = 0.0, initialMxy: Double = 0.0, initialMxz: Double = 0.0, initialMyx: Double = 0.0, initialMyz: Double = 0.0, initialMzx: Double = 0.0, initialMzy: Double = 0.0, baseNoiseLevel: Double? = null, qualityScoreMapper: QualityScoreMapper<StandardDeviationBodyKinematics> = DefaultAccelerometerQualityScoreMapper())

Constructor.

Parameters

measurements

List of accelerometer measurements.

robustPreliminarySubsetSize

Size of preliminary subsets picked while finding a robust accelerometer calibration solution.

minimumRequiredMeasurements

Minimum number of required measurements to start accelerometer calibration.

robustMethod

Indicates robust method used to solve accelerometer calibration.

robustConfidence

Confidence of estimated accelerometer calibration result expressed as a value between 0.0 and 1.0.

robustMaxIterations

Maximum number of iterations to attempt to find a robust accelerometer calibration solution. By default this is 5000.

robustThreshold

Threshold to be used to determine whether a measurement is considered an outlier by robust accelerometer calibration algorithms or not.

robustThresholdFactor

Factor to be used respect estimated accelerometer base noise level to consider a measurement an outlier when using robust calibration methods.

robustStopThresholdFactor

Additional factor to be taken into account for robust methods based on LMedS or PROMedS, where factor is not directly related to LMSE, but to a smaller value.

location

Location of device when running calibration.

gravityNorm

Contains gravity norm (either obtained by the gravity sensor, or determined by current location using WGS84 Earth model). Expressed in meters per squared second (m/s^2).

isGroundTruthInitialBias

Indicates whether accelerometer initial bias is considered a ground-truth known bias.

isCommonAxisUsed

Indicates or specifies whether z-axis is assumed to be common for magnetometer and gyroscope.

initialBiasX

x-coordinate of accelerometer bias used as an initial guess and expressed in meters per squared second (m/s^2).

initialBiasY

y-coordinate of accelerometer bias used as an initial guess and expressed in meters per squared second (m/s^2).

initialBiasZ

z-coordinate of accelerometer bias used as an initial guess and expressed in meters per squared second (m/s^2).

initialSx

initial x scaling factor for accelerometer calibration.

initialSy

initial y scaling factor for accelerometer calibration.

initialSz

initial z scaling factor for accelerometer calibration.

initialMxy

initial x-y cross coupling error for accelerometer calibration.

initialMxz

initial x-z cross coupling error for accelerometer calibration.

initialMyx

initial y-x cross coupling error for accelerometer calibration.

initialMyz

initial y-z cross coupling error for accelerometer calibration.

initialMzx

initial z-x cross coupling error for accelerometer calibration.

initialMzy

initial z-y cross coupling error for accelerometer calibration.

baseNoiseLevel

accelerometer measurement base noise level that has been detected during initialization expressed in meters per squared second (m/s^2).

qualityScoreMapper

mapper to convert collected accelerometer measurements into quality scores, based on the amount of standard deviation (the larger the variability, the worse the score will be).

Throws

if any of provided parameters is invalid.