Im trying to port this to Java, and there is some code I dont understand.
For example: matrix R is created with 2x2 dimensions:
f->R = MatrixAlloc(measureDimension, measureDimension); f->kf = KalmanFilterCreate(4, 2, 2);
And then rebuildR function assigns 4x4 matrix to it.
double velSigma = posSigma * 1.0e-01; MatrixSet(f->kf->R, posSigma, 0.0, 0.0, 0.0, 0.0, posSigma, 0.0, 0.0, 0.0, 0.0, velSigma, 0.0, 0.0, 0.0, 0.0, velSigma); }
Same thing with Zk vector.
Im not an expert in C, so maybe someone could explain this?
Im trying to port this to Java, and there is some code I dont understand. For example: matrix R is created with 2x2 dimensions:
f->R = MatrixAlloc(measureDimension, measureDimension); f->kf = KalmanFilterCreate(4, 2, 2);
And then rebuildR function assigns 4x4 matrix to it.double velSigma = posSigma * 1.0e-01; MatrixSet(f->kf->R, posSigma, 0.0, 0.0, 0.0, 0.0, posSigma, 0.0, 0.0, 0.0, 0.0, velSigma, 0.0, 0.0, 0.0, 0.0, velSigma); }
Same thing with Zk vector. Im not an expert in C, so maybe someone could explain this?