Package org.apache.commons.math.stat.univariate.moment

Examples of org.apache.commons.math.stat.univariate.moment.Variance


    public void testInteraction() {
       
        FourthMoment m4 = new FourthMoment();
        Mean m = new Mean(m4);
        Variance v = new Variance(m4);
        Skewness s= new Skewness(m4);
        Kurtosis k = new Kurtosis(m4);

        for (int i = 0; i < testArray.length; i++){
            m4.increment(testArray[i]);
            m.increment(testArray[i]);
            v.increment(testArray[i]);
            s.increment(testArray[i]);
            k.increment(testArray[i]);
        }
       
        assertEquals(mean,m.getResult(),tolerance);
        assertEquals(var,v.getResult(),tolerance);
        assertEquals(skew ,s.getResult(),tolerance);
        assertEquals(kurt,k.getResult(),tolerance);

    }
View Full Code Here


        sumLog = new SumOfLogs();
        geoMean = new GeometricMean();

        moment = new FourthMoment();
        mean = new Mean(moment);
        variance = new Variance(moment);
        skewness = new Skewness(moment);
        kurtosis = new Kurtosis(moment);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.math.stat.univariate.moment.Variance

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.