Package org.jquantlib.math.functions

Examples of org.jquantlib.math.functions.Everywhere


    public /*@Real*/ double mean() /*@ReadOnly*/ {
        /*@Size*/ final int N = samples();
        QL.require(N != 0, "empty sample set");
        // eat our own dog food
        return expectationValue(new Identity(), new Everywhere()).first();
    }
View Full Code Here


        // Hopefully, the whole thing will be inlined in a single loop.
        /*@Real*/ final double s2 = expectationValue(
            new ComposedFunction(
                new Square(), new Bind2nd(
                    new Minus(), mean())),
                                   new Everywhere()).first();
        return s2*N/(N-1.0);
    }
View Full Code Here

        /*@Real*/ final double x = expectationValue(
            new ComposedFunction(
                new Cube(), new Bind2nd(
                    new Minus(), mean())),
                                  new Everywhere()).first();
        /*@Real*/ final double sigma = standardDeviation();

        return (x/(sigma*sigma*sigma))*(N/(N-1.0))*(N/(N-2.0));
    }
View Full Code Here

        /*@Real*/ final double x = expectationValue(
            new ComposedFunction(
                new Fourth(), new Bind2nd(
                    new Minus(), mean())),
                                  new Everywhere()).first();
        /*@Real*/ final double sigma2 = variance();

        /*@Real*/ final double c1 = (N/(N-1.0)) * (N/(N-2.0)) * ((N+1.0)/(N-3.0));
        /*@Real*/ final double c2 = 3.0 * ((N-1.0)/(N-2.0)) * ((N-1.0)/(N-3.0));

 
View Full Code Here

TOP

Related Classes of org.jquantlib.math.functions.Everywhere

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.