Accelerometer Noise Estimator
Estimates accelerometer noise. This estimator takes a given number of accelerometer measurements during a given duration of time to estimate accelerometer measurements average, standard deviation and variance, as well as average time interval between measurements. To be able to measure accelerometer noise, device should remain static so that average accelerometer measurements are constant and their standard deviations reflect actual sensor noise. This estimator converts sensor measurements from device ENU coordinates to local plane NED coordinates. Thus, all values referring to a given x-y-z coordinates refers to local plane NED system of coordinates.
Parameters
Android context.
Delay of sensor between samples.
Maximum number of samples to take into account before completion. This is only taken into account if using either StopMode.MAX_SAMPLES_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
Maximum duration expressed in milliseconds to take into account before completion. This is only taken into account if using either StopMode.MAX_DURATION_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
Determines when this estimator will consider its estimation completed.
Listener to notify when estimation is complete.
Listener to notify when sensor becomes unreliable, and thus, estimation must be discarded.
Throws
when either maxSamples or maxDurationMillis is negative.
Constructors
Properties
Gets average sensor measurement noise PSD (Power Spectral Density) expressed in (m^2 * s^-3) for accelerometer, (rad^2/s) for gyroscope or (T^2 * s) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets estimated average norm of sensor measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to gravity norm (for accelerometer sensor), Earth rotation rate (for gyroscope sensor), or magnetic field intensity (for magnetometer).
Gets estimated average norm of sensor measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to gravity norm (for accelerometer sensor), Earth rotation rate (for gyroscope sensor), or magnetic field intensity (for magnetometer).
Gets average of estimated standard deviations of sensor measurements expressed in its default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets average of estimated standard deviations of sensor measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets average time interval between measurements expressed in seconds (s). This is only available when estimation completes successfully and resultAvailable is true.
Gets average time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.
Gets estimated average values of sensor. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of sensor x-axis measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of sensor x-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of accelerometer y-axis measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of accelerometer y-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of accelerometer z-axis measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of sensor z-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Listener to notify when estimation is complete.
Gets amount of elapsed time to compute sensor noise, either if computation succeeds or not.
Gets amount of elapsed time to compute sensor noise estimation expressed in nanoseconds (ns), either if computation succeeds or not.
Gets maximum duration expressed in milliseconds to take into account before completion. This is only taken into account if using either StopMode.MAX_DURATION_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
Gets maximum number of samples to take into account before completion. This is only taken into account if using either StopMode.MAX_SAMPLES_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
Listener to notify collected sensor measurements.
Gets norm of sensor noise root PSD (Power Spectral Density) expressed in (m * s^-1.5) for accelerometer, (rad * s^-0.5) for gyroscope or (T * s^0.5) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Number of measurements that have been processed.
Gets sensor noise PSD (Power Spectral Density) on x axis expressed in (m^2 * s^-3) for accelerometer, (rad^2/s) for gyroscope or (T^2 * s) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets sensor noise PSD (Power Spectral Density) on y axis expressed in (m^2 * s^-3) for accelerometer, (rad^2/s) for gyroscope or (T^2 * s) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets sensor noise PSD (Power Spectral Density) on z axis expressed in (m^2 * s^-3) for accelerometer, (rad^2/s) for gyroscope or (T^2 * s) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Indicates whether estimated average and time interval between measurements are available or not.
Indicates whether estimated result is unreliable or not.
Gets sensor noise root PSD (Power Spectral Density) on x axis expressed in (m * s^-1.5) for accelerometer, (rad * s^-0.5) for gyroscope or (T * s^0.5) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets sensor noise root PSD (Power Spectral Density) on y axis expressed in (m * s^-1.5) for accelerometer, (rad * s^-0.5) for gyroscope or (T * s^0.5) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets sensor noise root PSD (Power Spectral Density) on z axis expressed in (m * s^-1.5) for accelerometer, (rad * s^-0.5) for gyroscope or (T * s^0.5) for magnetometer. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Delay of sensor between samples.
One of the supported accelerometer sensor types.
Gets norm of estimated standard deviations of sensor measurements expressed in its default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets norm of estimated standard deviations of sensor measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation values of sensor. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets estimated standard deviation value of sensor x-axis measurements expressed in its default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor x-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor y-axis measurements expressed in its default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor y-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor z-axis measurements expressed in its default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor z-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation of time interval between measurements expressed in seconds (s). This is only available when estimation completes successfully and resultAvailable is true.
Gets estimated standard deviation of time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.
Gets estimated variance of time interval between measurements expressed in squared seconds (s^2). This is only available when estimation completes successfully and resultAvailable is true.
Listener to notify when sensor becomes unreliable, and thus, estimation must be discarded.
Gets estimated variance value of sensor x-axis measurements expressed in its default squared unit (m^2/s^4 for acceleration, rad^2/s^2 for angular speed or T^2 for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this variance is an indication of sensor noise.
Gets estimated variance value of sensor y-axis measurements expressed in its default squared unit (m^2/s^4 for acceleration, rad^2/s^2 for angular speed or T^2 for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this variance is an indication of sensor noise.
Gets estimated variance value of sensor z-axis measurements expressed in its default squared unit (m^2/s^4 for acceleration, rad^2/s^2 for angular speed or T^2 for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this variance is an indication of sensor noise.
Functions
Gets estimated average norm of sensor measurements expressed in sensor default unit (m/s^2 for acceleration, rad/s for angular speed or T for magnetic flux density). This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to gravity norm (for accelerometer sensor), Earth rotation rate (for gyroscope sensor), or magnetic field intensity (for magnetometer).
Gets average of estimated standard deviations of sensor measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets average time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.
Gets estimated average values of sensor. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of sensor x-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of accelerometer y-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets estimated average value of sensor z-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this should be equal to the x-axis component of gravity acceleration (for accelerometer sensor), x-axis component of Earth rotation rate (for gyroscope sensor), or x-axis component of magnetic field intensity (for magnetometer).
Gets amount of time elapsed, either if computation succeeds or not.
Gets norm of estimated standard deviations of sensor measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation values of sensor. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this is an indication of sensor noise.
Gets estimated standard deviation value of sensor x-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor y-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation value of sensor z-axis measurements. This is only available when estimation completes successfully and resultAvailable is true. If device remained completely static during estimation, this standard deviation is an indication of sensor noise.
Gets estimated standard deviation of time interval between measurements. This is only available when estimation completes successfully and resultAvailable is true.