Package cc.redberry.core.tensor.random

Examples of cc.redberry.core.tensor.random.RandomTensor


public class ProductBijectionPerformanceTest {

    public static void main(String[] args) {
        int badCounter = 0;
//        CC.resetTensorNames(-3912578993076521674L);
        RandomTensor rp = new RandomTensor(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
        while (++count < 500) {
//            CC.resetTensorNames();
            Tensor t = rp.nextProduct(15);
            if (!(t instanceof Product))
                continue;

            Product from = (Product) t;
View Full Code Here

TOP

Related Classes of cc.redberry.core.tensor.random.RandomTensor

Copyright © 2018 www.massapicom. 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.