Package fork.lib.math.algebra.elementary.set.continuous

Examples of fork.lib.math.algebra.elementary.set.continuous.Region.attribute()


        String chr = chrs[k];
        System.out.print(chr+"  ");
        ArrayList<Region> rs= lbb.getLandscape2DForChromosome(chr).getRegions();
        for( int i=1; i<rs.size() ; i++ ){
            Region r= rs.get(i);
            double val= Double.parseDouble(r.attribute().toString());
            int v= (int) (val-thr);
            if(v>0 ){
                bw.write(chr+"\t"+ (int)r.low+"\t"+ ((int)r.high+1)+"\t"+ v+"\n");
            }
        }
View Full Code Here


        RegionBuffer buf= new RegionBuffer(irs);
        for( int j=0; j<frs.size(); j++ ){
            Region fr= frs.get(j);
            ArrayList<Region> bufrs= buf.reloadAndGetList(fr);
            double ival= RegionBuffer.getOverlap(bufrs, fr) / (fr.getRange()+1);
            double fval= (double)fr.attribute();
            double nv= fval - ival*rat;
           
            //System.out.println(fval+"    "+ ival+"   "+ fr.getRange());
            nv= nv<0 ? 0 : nv;
            fr.setAttribute(nv);
View Full Code Here

        String chr = chrs[k];
        System.out.print(chr+"  ");
        ArrayList<Region> rs= lbb.getLandscape2DForChromosome(chr).getRegions();
        for( int i=1; i<rs.size() ; i++ ){
            Region r= rs.get(i);
            double val= Double.parseDouble(r.attribute().toString());
            if(val>thr){
                double v= val-thr;
                bw.write(chr+"\t"+ (int)r.low+"\t"+ ((int)r.high+1)+"\t"+ (int)v+"\n");
            }
        }
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.