Examples of median()


Examples of flanagan.analysis.Stat.median()

                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                medians[i] = st.median();
            }

            return medians;
        }
View Full Code Here

Examples of flanagan.analysis.Stat.median()

            for(int i=1; i<this.numberOfRows; i++){
                st.concatenate(this.matrix[i]);
            }

            return st.median();
        }

        // Returns medians of the rows
        public double[] rowMedians(){
            double[] medians = new double[this.numberOfRows];
View Full Code Here

Examples of flanagan.analysis.Stat.median()

        // Returns medians of the rows
        public double[] rowMedians(){
            double[] medians = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                medians[i] = st.median();
            }

            return medians;
        }
View Full Code Here

Examples of flanagan.analysis.Stat.median()

                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                medians[i] = st.median();
            }

            return medians;
        }
View Full Code Here

Examples of flanagan.analysis.Stat.median()

        // Calculate standardized transformed data statistics
        Stat st3 = new Stat(this.transformedData);
        this.standardizedTransformedMinimum = st3.minimum();
        this.standardizedTransformedMaximum = st3.maximum();
        this.standardizedTransformedMedian = st3.median();
        this.standardizedTransformedRange = this.standardizedTransformedMaximum - this.standardizedTransformedMinimum;
        this.standardizedTransformedMean = 0.0;
        this.standardizedTransformedStandardDeviation = 1.0;
        this.standardizedTransformedVariance = 1.0;
        this.standardizedTransformedMomentSkewness = st3.momentSkewness();
View Full Code Here

Examples of flanagan.analysis.Stat.median()

        // Calculate transformed data statistics
        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();
View Full Code Here

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

}
   
   
public static void subtractBackground(Distribution dis, File f, File outSub, double rat)throws Exception {
    Distribution dislow= dis.subsetLowerThan(dis.quantileBoundaries(100).get(99));
    double med= dislow.median();
    double sd= dislow.standartDeviation();
    double thr= med+ sd* rat;
    System.out.println("med: "+ med+"   sd: "+ sd+"     trh:"+ thr);
   
   
View Full Code Here

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

        }
    }
    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.median()

   


public static void normalise(LandscapeBuilder lb, File f, String tit) throws Exception{
    Distribution d= lb.getDistribution();
    double fac= (double)Math.ceil( d.median() * 1.75);
    new LandscapeTransformer(lb).subtract(fac);
    System.out.println("subfac: "+fac);
   
    Distribution dnz= lb.getDistributionNonZero();
    double nf= dnz.sum()/ 100000000;
View Full Code Here

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

   
public void subtract2()throws Exception {
    Distribution dis= new BedGraphBuffer(outSub).getDistributionNonZero();
    dis= dis.subsetLowerThan(dis.quantileBoundaries(10).get(7));
    double med= dis.median();
    double sd= dis.standartDeviation();
    double thr= med+ sd* 2;
    System.out.println("med: "+ med+"   sd: "+ sd+"     "+ thr);

    BufferedWriter bw= new BufferedWriter(new FileWriter(outSub2));
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.