Examples of Distribution


Examples of de.lmu.ifi.dbs.elki.math.statistics.distribution.Distribution

          outStream.write("## Clipping: " + cmin.toString() + " - " + cmax.toString() + LINE_SEPARATOR);
        }
        outStream.write("## Density correction factor: " + cursclus.getDensityCorrection() + LINE_SEPARATOR);
        outStream.write("## Generators:" + LINE_SEPARATOR);
        for(int i = 0; i < cursclus.getDim(); i++) {
          Distribution gen = cursclus.getDistribution(i);
          outStream.write("##   " + gen.toString() + LINE_SEPARATOR);
        }
        if(cursclus.getTransformation() != null && cursclus.getTransformation().getTransformation() != null) {
          outStream.write("## Affine transformation matrix:" + LINE_SEPARATOR);
          outStream.write(FormatUtil.format(cursclus.getTransformation().getTransformation(), "## ") + LINE_SEPARATOR);
        }
View Full Code Here

Examples of edu.stanford.nlp.stats.Distribution

    markovPOSDists = Generics.newHashMap();
    Set entries = ruleCounter.lowestLevelCounterEntrySet();
    for (Iterator iter = entries.iterator(); iter.hasNext();) {
      Map.Entry entry = (Map.Entry) iter.next();
      //      Map.Entry<List<String>, Counter> entry = (Map.Entry<List<String>, Counter>) iter.next();
      Distribution d = Distribution.laplaceSmoothedDistribution((ClassicCounter) entry.getValue(), numTags, 0.5);
      markovPOSDists.put(((List<String>) entry.getKey()).get(0), d);
    }
  }
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution

    outNorm= new File(od+"/norm_"+f.getName());
}
   
   
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

}

public String getOutString(String li){
    String[] ns= li.split(",");
    String out= "c(";
    Distribution dis= new Distribution();
    for(int i=0; i<ns.length ; i++){
        String n= ns[i];
        if(tfb.containsKey(n)){
            String ss= tfb.get(n);
            out+=ss+",";
            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

   
   

   
protected void init() throws Exception{
    Distribution disall= new Distribution(gvs.values());
    Distribution dis= disall.subsetHigherThan(0);
   
    ArrayList<Double> bs= dis.quantileBoundaries(intv);
    bs.add(0, -0.1);
   
    for( int i=0; i<bs.size()-1 ; i++ ){
        String n = tit+i+"_"+bs.get(i)+"_"+bs.get(i+1);
        sets.add(new GeneSet(n));
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution

    public void init() throws Exception{
        ArrayList<Double> vs= new ArrayList<>();
        for(int i=0; i<vss.length ; i++){
            vs.add( vss[i][col] );
        }
        double thr= new Distribution(vs).quantileBoundaries(20).get(1);
        String thrs= new DecimalFormat("0.##E0").format(thr);
       
        sets.add(new GeneSet(tit+"_"+thrs+"_y"));
        sets.add(new GeneSet(tit+"_"+thrs+"_n"));
       
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution

   
   


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;
    new LandscapeTransformer(lb).divideBy(nf);
    BedGraphExporter be= new BedGraphExporter(lb);
    be.param().tit= tit;
    be.writeToFile(f);
}
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution

protected void random()throws Exception {
   
    System.out.println(ovl(gbtar, gbref));
   
    Distribution disb= new Distribution();
    //for( int i=0; i<100; i++ ){
    for( int i=0; i<1; i++ ){
        FrequencyCount<Integer> lens= gbtar.lengthDistribution();
        //System.out.print(i+"    ");
       
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution

    NormChipSeqRPM.toRatio(f, in, outRat);
}

public void subtract()throws Exception {
   
    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);
   
    //double rat= 2.5;
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution



   
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));
    BedGraphExporter.writeTitle(bw, FileName.getBaseName(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.