public void setQ(Matrix Q) 
 {
 	this.Q = Q.Extract(1, Q.RowCount, 1, Q.ColumnCount); // this.Q = Q;
 }
 public void setR(Matrix R) 
 {
 	this.R = R.Extract(1, R.RowCount, 1, R.ColumnCount); // this.S = R;
 }
    /**
     * The prior state estimate and covariance.
     *
     * @param x The estimated system state.
     * @param P The covariance of the estimated system state.
     */
    public void setState(Matrix x, Matrix P) 
    {
		this.x = x.Extract(1, x.RowCount, 1, x.ColumnCount); // this.x.set(x);
		this.P = P.Extract(1, P.RowCount, 1, P.ColumnCount); // this.P.set(P);
    }