Package org.apache.commons.math3.analysis

Examples of org.apache.commons.math3.analysis.MultivariateMatrixFunction


                }
            });
    }

    public ModelFunctionJacobian getModelFunctionJacobian() {
        return new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                public double[][] value(double[] point) {
                    return jacobian(point);
                }
        });
    }
View Full Code Here


                }
        });
    }

    public ModelFunctionJacobian getModelFunctionJacobian() {
        return new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                public double[][] value(double[] params) {
                    final int n = points.size();
                    final Vector2D center = new Vector2D(params[0], params[1]);

                    double dRdX = 0;
View Full Code Here

                }
            };
        }

        public MultivariateMatrixFunction getModelFunctionJacobian() {
            return new MultivariateMatrixFunction() {
                public double[][] value(double[] params) {
                    double[][] jacobian = new double[time.size()][5];

                    for (int i = 0; i < jacobian.length; ++i) {
                        final double t = time.get(i);
View Full Code Here

                    }
                });
        }

        public ModelFunctionJacobian getModelFunctionJacobian() {
            return new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                    public double[][] value(double[] params) {
                        double[][] jacobian = new double[time.size()][5];

                        for (int i = 0; i < jacobian.length; ++i) {
                            final double t = time.get(i);
View Full Code Here

                                   return new double[] {
                                       FastMath.pow(point[0], 4)
                                   };
                               }
                           }),
                       new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                               public double[][] value(double[] point) {
                                   return new double[][] {
                                       { 0.25 * FastMath.pow(point[0], 3) }
                                   };
                               }
View Full Code Here

                    }
                });
        }

        public ModelFunctionJacobian getModelFunctionJacobian() {
            return new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                    public double[][] value(double[] point) {
                        return factors.getData();
                    }
                });
        }
View Full Code Here

            this.f = f;
        }

        /** {@inheritDoc} */
        public MultivariateMatrixFunction jacobian() {
            return new MultivariateMatrixFunction() {
                public double[][] value(double[] point) {
                    final double[][] jacobian = new double[observations.size()][];

                    int i = 0;
                    for (WeightedObservedPoint observed : observations) {
View Full Code Here

        /**
         * @return the model function Jacobian.
         */
        public ModelFunctionJacobian getModelFunctionJacobian() {
            return new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                    public double[][] value(double[] point) {
                        final double[][] jacobian = new double[observations.size()][];
                        int i = 0;
                        for (WeightedObservedPoint observed : observations) {
                            jacobian[i++] = f.gradient(observed.getX(), point);
View Full Code Here

        /**
         * @return the model function Jacobian.
         */
        public MultivariateMatrixFunction getModelFunctionJacobian() {
            return new MultivariateMatrixFunction() {
                public double[][] value(double[] p) {
                    final int len = points.length;
                    final double[][] jacobian = new double[len][];
                    for (int i = 0; i < len; i++) {
                        jacobian[i] = f.gradient(points[i], p);
View Full Code Here

                                   return new double[] {
                                       FastMath.pow(point[0], 4)
                                   };
                               }
                           }),
                       new ModelFunctionJacobian(new MultivariateMatrixFunction() {
                               public double[][] value(double[] point) {
                                   return new double[][] {
                                       { 0.25 * FastMath.pow(point[0], 3) }
                                   };
                               }
View Full Code Here

TOP

Related Classes of org.apache.commons.math3.analysis.MultivariateMatrixFunction

Copyright © 2018 www.massapicom. 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.