Examples of mean()


Examples of flanagan.analysis.Stat.mean()

        Stat st2 = new Stat(data);
        this.transformedMinimum = st2.minimum();
        this.transformedMaximum = st2.maximum();
        this.transformedMedian = st2.median();
        this.transformedRange = this.transformedMaximum - this.transformedMinimum;
        this.transformedMean = st2.mean();
        this.transformedStandardDeviation = st2.standardDeviation();
        this.transformedVariance = st2.variance();
        this.transformedMomentSkewness = st2.momentSkewness();
        this.transformedMedianSkewness = st2.medianSkewness();
        this.transformedQuartileSkewness = st2.quartileSkewness();
View Full Code Here

Examples of flanagan.analysis.Stat.mean()

            }
        }

        // Calculate mean and sd
        Stat stat= new Stat(weights);
        this.weightsMean = stat.mean();
        this.weightsSD = stat.standardDeviation();

        // check for zero and replace by mean/100
        for(int i=0; i<this.nWeights; i++){
            if(weights[i]==0.0){
View Full Code Here

Examples of flanagan.analysis.Stat.mean()

                xerre[i] = cspe.interpolate(respe[i]);
            }
            Stat stat = new Stat(xerre);
            this.minimumAerror = stat.minimum();
            this.maximumAerror = stat.maximum();
            this.meanAerror = stat.mean();
            this.sdAerror = stat.standardDeviation();
        }
    }

View Full Code Here

Examples of flanagan.analysis.Stat.mean()

        Stat st2 = new Stat(data);
        this.transformedMinimum = st2.minimum();
        this.transformedMaximum = st2.maximum();
        this.transformedMedian = st2.median();
        this.transformedRange = this.transformedMaximum - this.transformedMinimum;
        this.transformedMean = st2.mean();
        this.transformedStandardDeviation = st2.standardDeviation();
        this.transformedVariance = st2.variance();
        this.transformedMomentSkewness = st2.momentSkewness();
        this.transformedMedianSkewness = st2.medianSkewness();
        this.transformedQuartileSkewness = st2.quartileSkewness();
View Full Code Here

Examples of flanagan.analysis.Stat.mean()

        Stat st2 = new Stat(scaledTransformedData);
        this.transformedMinimum = st2.minimum();
        this.transformedMaximum = st2.maximum();
        this.transformedMedian = st2.median();
        this.transformedRange = this.transformedMaximum - this.transformedMinimum;
        this.transformedMean = st2.mean();
        this.transformedStandardDeviation = st2.standardDeviation();
        this.transformedVariance = st2.variance();
        this.transformedMomentSkewness = st2.momentSkewness();
        this.transformedMedianSkewness = st2.medianSkewness();
        this.transformedQuartileSkewness = st2.quartileSkewness();
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution.mean()

            dis.add(Integer.parseInt(ss));
        }
    }
    out= out.substring(0, out.length()-1);
    out+=")";
    out+="\nmu:"+dis.mean()+"   zero:"+ (double)dis.subsetLowerOrEqualTo(0).size()/dis.size()
            +"  me:"+dis.median()+"   s:"+dis.standartDeviation();
    return out;
}
   
   
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution.mean()

    Distribution dis0 = new BedGraphBuffer(outRat).getDistributionNonZero();
    Distribution dis= dis0.subsetHigherThan(1);
    dis= dis.subsetLowerOrEqualTo(dis.quantileBoundaries(10).get(5));
   
   
    double mean= dis.mean();
    double sd= dis.standartDeviation();
    double rat= mean+ 1.2 *sd;
   
    System.out.println("m: "+ mean+"   sd: "+sd+"  rat: "+rat);
   
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution.mean()

    Distribution d= lb.getDistributionNonZero();
    ArrayList<Double> qs= d.quantileBoundaries(100);
    double m=0 ,sd=0;
    for( int i=0; i<50; i++ ){
        Distribution df= d.subset(qs.get(i), qs.get(qs.size()-1-i), true, true);
        m= df.mean();
        sd= df.standartDeviation();
        double z= sd/m;
        //System.out.println(i+"   mean: "+m+"   med: "+med+"   sd: "+ sd+"  z:"+z);
        if(z<0.2){
            break;
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution.mean()

    Distribution d= lb.getDistributionNonZero();
    ArrayList<Double> qs= d.quantileBoundaries(100);
    double m=0 ,sd=0;
    for( int i=0; i<50; i++ ){
        Distribution df= d.subset(qs.get(i), qs.get(qs.size()-1-i), true, true);
        m= df.mean();
        double med= df.median();
        sd= df.standartDeviation();
        double z= sd/m;
        //System.out.println(i+"   mean: "+m+"   med: "+med+"   sd: "+ sd+"  z:"+z);
        if(z<0.2){
View Full Code Here

Examples of opennlp.tools.util.eval.Mean.mean()

  @Test
  public void testMeanCalculation() {
    Mean a = new Mean();
    a.add(1);
    assertEquals(1, a.count());
    assertEquals(1d, a.mean(), 0.00001d);
   
    a.add(1);
    assertEquals(2, a.count());
    assertEquals(1d, a.mean(), 0.00001d);
    a.toString();
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.