public class DefaultMeasurementModel extends java.lang.Object implements MeasurementModel
MeasurementModel for the use with a KalmanFilter.| Modifier and Type | Field and Description |
|---|---|
private RealMatrix |
measurementMatrix
The measurement matrix, used to associate the measurement vector to the
internal state estimation vector.
|
private RealMatrix |
measurementNoise
The measurement noise covariance matrix.
|
| Constructor and Description |
|---|
DefaultMeasurementModel(double[][] measMatrix,
double[][] measNoise)
Create a new
MeasurementModel, taking double arrays as input parameters for the
respective measurement matrix and noise. |
DefaultMeasurementModel(RealMatrix measMatrix,
RealMatrix measNoise)
Create a new
MeasurementModel, taking RealMatrix objects
as input parameters for the respective measurement matrix and noise. |
| Modifier and Type | Method and Description |
|---|---|
RealMatrix |
getMeasurementMatrix()
Returns the measurement matrix.
|
RealMatrix |
getMeasurementNoise()
Returns the measurement noise matrix.
|
private RealMatrix measurementMatrix
private RealMatrix measurementNoise
public DefaultMeasurementModel(double[][] measMatrix,
double[][] measNoise)
throws NullArgumentException,
NoDataException,
DimensionMismatchException
MeasurementModel, taking double arrays as input parameters for the
respective measurement matrix and noise.measMatrix - the measurement matrixmeasNoise - the measurement noise matrixNullArgumentException - if any of the input matrices is nullNoDataException - if any row / column dimension of the input matrices is zeroDimensionMismatchException - if any of the input matrices is non-rectangularpublic DefaultMeasurementModel(RealMatrix measMatrix, RealMatrix measNoise)
MeasurementModel, taking RealMatrix objects
as input parameters for the respective measurement matrix and noise.measMatrix - the measurement matrixmeasNoise - the measurement noise matrixpublic RealMatrix getMeasurementMatrix()
getMeasurementMatrix in interface MeasurementModelpublic RealMatrix getMeasurementNoise()
KalmanFilter every
correction step, so implementations of this interface may return a modified measurement noise
depending on the current iteration step.getMeasurementNoise in interface MeasurementModelKalmanFilter.correct(double[]),
KalmanFilter.correct(org.apache.commons.math3.linear.RealVector)Copyright (c) 2003-2015 Apache Software Foundation