Examples of PairEC


Examples of cc.redberry.transformation.ec.PairEC

                    DescriptiveStatistics ds = new DescriptiveStatistics();

                    for (int i = 0; i < 10; ++i) { //Each random sum repeatedly tested 1000 times
                        Sum[] sums_ = new Sum[]{sums[0].clone(), sums[1].clone()};
                        long start = System.nanoTime();
                        PairEC pec = new PairEC(sums_[0], sums_[1], NaiveSumCollectIP.FACTORY, ScalarsSplitter.INSTANCE, threads);
                        Sum res = (Sum) pec.result();
//                        System.out.println(res.size() + " " + res);
                        ds.addValue(System.nanoTime() - start);
                    }

                    stats[threads - 1] = ds; //Saving statistics for one thread
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.