Examples of Gamma


Examples of org.apache.mahout.math.jet.random.Gamma

        PrintWriter out = new PrintWriter(new FileOutputStream("sq-tree-comparison.csv"));
        try {

            for (int i = 0; i < repeats(); i++) {
                compareSQ(out, new Gamma(0.1, 0.1, rand), "gamma", 1L << 48);
                compareSQ(out, new Uniform(0, 1, rand), "uniform", 1L << 48);
            }
        } finally {
            out.close();
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

        // the median is 0.006 and the 99.9th %-ile is 33.6 while the mean is 1.
        // this severe skew means that we have to have positional accuracy that
        // varies by over 11 orders of magnitude.
        Random gen = RandomUtils.getRandom();
        for (int i = 0; i < 10; i++) {
            runTest(factory, new Gamma(0.1, 0.1, gen), 100,
//                    new double[]{6.0730483624079e-30, 6.0730483624079e-20, 6.0730483627432e-10, 5.9339110446023e-03,
//                            2.6615455373884e+00, 1.5884778179295e+01, 3.3636770117188e+01},
                    new double[]{0.001, 0.01, 0.1, 0.5, 0.9, 0.99, 0.999},
                    "gamma", false);
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

        PrintWriter out = new PrintWriter(new FileOutputStream("qd-array-comparison.csv"));
        try {
            out.printf("tag\tcompression\tq\te1\tcdf.vs.q\tsize\tqd.size\n");

            for (int i = 0; i < repeats(); i++) {
                compareQD(out, new Gamma(0.1, 0.1, rand), "gamma", 1L << 48);
                compareQD(out, new Uniform(0, 1, rand), "uniform", 1L << 48);
            }
        } finally {
            out.close();
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

        PrintWriter out = new PrintWriter(new FileOutputStream("sk-array-comparison.csv"));
        try {
            out.printf("tag\tcompression\tq\te1\tcdf.vs.q\tsize\tsk.size\n");
            for (int i = 0; i < repeats(); i++) {
                compareSQ(out, new Gamma(0.1, 0.1, rand), "gamma", 1L << 48);
                compareSQ(out, new Uniform(0, 1, rand), "uniform", 1L << 48);
            }
        } finally {
            out.close();
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

        // the median is 0.006 and the 99.9th %-ile is 33.6 while the mean is 1.
        // this severe skew means that we have to have positional accuracy that
        // varies by over 11 orders of magnitude.
        Random gen = RandomUtils.getRandom();
        for (int i = 0; i < repeats(); i++) {
            runTest(factory, new Gamma(0.1, 0.1, gen), 100,
//                    new double[]{6.0730483624079e-30, 6.0730483624079e-20, 6.0730483627432e-10, 5.9339110446023e-03,
//                            2.6615455373884e+00, 1.5884778179295e+01, 3.3636770117188e+01},
                    new double[]{0.001, 0.01, 0.1, 0.5, 0.9, 0.99, 0.999},
                    "gamma", true);
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

    public void compareToQDigest() throws FileNotFoundException {
        Random rand = RandomUtils.getRandom();
        PrintWriter out = new PrintWriter(new FileOutputStream("qd-tree-comparison.csv"));
        try {
            for (int i = 0; i < repeats(); i++) {
                compareQD(out, new Gamma(0.1, 0.1, rand), "gamma", 1L << 48);
                compareQD(out, new Uniform(0, 1, rand), "uniform", 1L << 48);
            }
        } finally {
            out.close();
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

        PrintWriter out = new PrintWriter(new FileOutputStream("sq-tree-comparison.csv"));
        try {

            for (int i = 0; i < repeats(); i++) {
                compareSQ(out, new Gamma(0.1, 0.1, rand), "gamma", 1L << 48);
                compareSQ(out, new Uniform(0, 1, rand), "uniform", 1L << 48);
            }
        } finally {
            out.close();
        }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Gamma

    private double alpha, beta;

    public BetaDistribution(double alpha, double beta, Random random) {
        this.alpha = alpha;
        this.beta = beta;
        gAlpha = new Gamma(alpha, 1, random);
        gBeta = new Gamma(beta, 1, random);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.Gamma

    public Gamma gamma;

    public CallableReference<Gamma> getRef(int param) {
        ServiceReference<Gamma> gammaRef = componentContext
                .getServiceReference(Gamma.class, "gamma");
        Gamma g = gammaRef.getService();
        g.start(param);
        return gammaRef;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.Gamma

    @Reference
    public Gamma gamma;

    public CallableReference<Gamma> getRef(int param) {
        ServiceReference<Gamma> gammaRef = componentContext.getServiceReference(Gamma.class, "gamma");
        Gamma g = gammaRef.getService();
        g.start(param);
        return gammaRef;
    }
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.