Examples of randomObject()


Examples of fork.lib.math.algebra.RandomObject.randomObject()

   
    ArrayList<GenomicRegion> al= gb.getAllGenomicRegions();
    RandomObject<GenomicRegion> rand= new RandomObject( al, null);
    HashSet<GenomicRegion> set= new HashSet<>();
    while(set.size()<n){
        GenomicRegion reg= rand.randomObject();
        if(!set.contains(reg)){
            set.add(reg);
        }
    }
   
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.