Package org.jquantlib.math

Examples of org.jquantlib.math.Factorial.ln()


    public double op(final int k)/* @Read-only */ {
        if (mu==0.0)
            if (k==0) return 1.0;
            else      return 0.0;
        final Factorial fact = new Factorial();
        final double logFactorial = fact.ln(k);
        return Math.exp(k*Math.log(mu) - logFactorial - mu);
    }

}
View Full Code Here


     return n;
    }

     public static double getlNFactorial(int n){
    Factorial f = new Factorial();
     return f.ln(n);
    }

     public static long getPrimeNumberAt(int n){
         PrimeNumbers pn = new PrimeNumbers();
         return pn.get(n);
View Full Code Here

    public double op(final int k)/* @Read-only */ {
        if (mu==0.0)
            if (k==0) return 1.0;
            else      return 0.0;
        final Factorial fact = new Factorial();
        final double logFactorial = fact.ln(k);
        return Math.exp(k*Math.log(mu) - logFactorial - mu);
    }

}
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.