Package net.sf.doodleproject.numerics4j.root

Examples of net.sf.doodleproject.numerics4j.root.Bracket


            public double evaluate(double x) throws NumericException {
                return cumulativeProbability(x) - p;
            }
        };

        Bracket b = new Bracket(f);
        double[] bracket = b.bracketOut(lower, initial, upper);

        BisectionRootFinder bisection = new BisectionRootFinder(f);
        return bisection.findRoot(bracket[0], bracket[1]);
    }
View Full Code Here


                public double evaluate(double x) throws NumericException {
                    return erf(x) - y;
                }
            };

            Bracket b = new Bracket(f);
            double[] bracket;
            if (y > 0) {
                bracket = b.bracketOut(0.0, y, Double.POSITIVE_INFINITY);
            } else {
                bracket = b.bracketOut(Double.NEGATIVE_INFINITY, y, 0.0);
            }

            BisectionRootFinder bisection = new BisectionRootFinder(f);
            ret = bisection.findRoot(bracket[0], bracket[1]);
        }
View Full Code Here

TOP

Related Classes of net.sf.doodleproject.numerics4j.root.Bracket

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.