Package net.sf.doodleproject.numerics4j.series

Examples of net.sf.doodleproject.numerics4j.series.Series


        } else if (x >= (a + 1.0)) {
            // use regularizedGammaQ because it should converge faster in this
            // case.
            ret = 1.0 - regularizedGammaQ(a, x);
        } else {
            Series s = new Series() {

                private double term = 1.0 / x;

                protected double getTerm(int n, double x) {
                    term = x / (a + n) * term;
                    return term;
                }
            };
            ret = s.evaluate(x)
                * Math.exp(-x + (a * Math.log(x)) - logGamma(a));
        }

        return ret;
    }
View Full Code Here

TOP

Related Classes of net.sf.doodleproject.numerics4j.series.Series

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.