Package net.sf.doodleproject.numerics4j.continuedfraction

Examples of net.sf.doodleproject.numerics4j.continuedfraction.ContinuedFraction.evaluate()


                    return ret;
                }
            };
            ret = Math.exp((a * Math.log(x)) + (b * Math.log(1.0 - x))
                - Math.log(a) - logBeta(a, b))
                / fraction.evaluate(x);
        }

        return ret;
    }
}
View Full Code Here


                protected double getB(int n, double x) {
                    return n * (a - n);
                }
            };

            ret = 1.0 / cf.evaluate(x);
            ret = Math.exp(-x + (a * Math.log(x)) - logGamma(a)) * ret;
        }

        return ret;
    }
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.