private Matrix prepareMatrix(double[] y) { final Matrix Y = DMF.createMatrix(1, y.length + 1); Y.setElement(0, 0, 1); Y.setSubMatrix(0, 1, DMF.copyArray(new double[][] { y })); return Y.transpose(); }
private Matrix prepareMatrix(double[] y) { final Matrix Y = DMF.createMatrix(1, y.length + 1); Y.setElement(0, 0, 1); Y.setSubMatrix(0, 1, DMF.copyArray(new double[][] { y })); return Y.transpose(); }
public void update(double[] x, double[] y) { final Matrix X = prepareMatrix(x); final Matrix Y = DMF.copyArray(new double[][] { y });
public void update(double[] x, double[] y) { final Matrix X = prepareMatrix(x); final Matrix Y = DMF.copyArray(new double[][] { y });