Examples of PointVectorValuePair


Examples of org.apache.commons.math3.optimization.PointVectorValuePair

        final double[][] data = dataset.getData();
        final double[] initial = dataset.getStartingPoint(0);
        final MultivariateDifferentiableVectorFunction problem;
        problem = dataset.getLeastSquaresProblem();
        final PointVectorValuePair optimum;
        optimum = optimizer.optimize(100, problem, data[1], w, initial);

        final double[] actual = optimum.getPoint();
        for (int i = 0; i < actual.length; i++) {
            double expected = dataset.getParameter(i);
            double delta = FastMath.abs(errParams * expected);
            Assert.assertEquals(dataset.getName() + ", param #" + i,
                                expected, actual[i], delta);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.