Package dclong.stat

Examples of dclong.stat.Combination


    RandomGenerator rg = new Well44497b(31);
    RandomDataImpl rng = new RandomDataImpl(rg);
    int sizeOfEachDataSet = 26;
    int sizeOfFirstGroup = 5;
    int numberOfTests = 12625;
    Combination comb = new Combination(sizeOfEachDataSet,sizeOfFirstGroup);
    int[][] cs = comb.getCombinations(comb.getTotal().intValue());
    String inputFile = "/home/adu/Dropbox/research/nettleton/spt/mean/jdata/sub_ALL_data.bin";
    String outputFile = "/home/adu/Dropbox/research/nettleton/spt/mean/output/all-1000.bin";
    double[][] data = BinaryReader.readDouble(inputFile, numberOfTests, sizeOfEachDataSet);
    int sequentialTerminationCriteria = 10;
    int numberOfPermutations = 1000 - 1;
View Full Code Here


   */
  private void updateCombinations(int sizeOfEachDataSet, int sizeOfSample){
    if(combinations==null||
        combinations.length!=Combination.choose(sizeOfEachDataSet, sizeOfSample).intValue()||
        combinations[0].length!=sizeOfSample){
      Combination comb = new Combination(sizeOfEachDataSet,sizeOfSample);
      if(this.sizeOfFirstGroup==this.sizeOfSecondGroup){
        combinations = comb.getCombinations(comb.getTotal().divide(new BigInteger("2")).intValue());
      }else{
        combinations = comb.getCombinations(comb.getTotal().intValue());
      }
      upperBound = combinations.length - 1;
    }
  }
View Full Code Here

    int sizeOfEachDataSet = 26;
//    int sizeOfFirstGroup = 8;
    int sizeOfFirstGroup = 5;
//    int numberOfTests = 10000;
    int numberOfTests = 12625;
    Combination comb = new Combination(sizeOfEachDataSet,sizeOfFirstGroup);
    int[][] cs = comb.getCombinations(comb.getTotal().intValue());
//    int index = 0;
    String inputFile = "/home/adu/Dropbox/research/nettleton/spt/mean/jdata/sub_ALL_data.bin";
//    String inputFile = "D:\\Dropbox\\Research\\Nettleton\\SPT\\Mean\\SerialTest\\Dependent\\testing-data-" + index + ".bin";
    String outputFile = "/home/adu/Dropbox/research/nettleton/spt/mean/output/sub_ALL_out.bin";
//    String outputFile = "D:\\Dropbox\\Research\\Nettleton\\SPT\\Mean\\SerialTest\\Dependent\\testing-data-out-Impl-" + index + ".bin";
View Full Code Here

    int sequentialTerminationCriteria = 10;
    int numberOfPermutations = 1000;
    int upperBound = Combination.choose(sizeOfEachDataSet, sizeOfFirstGroup).intValue() - 1;
    int simulationIndex = 0;
    SPTOutput[][] output = new SPTOutput[1][numberOfTests];
    Combination comb = new Combination(sizeOfEachDataSet,sizeOfFirstGroup);
    int[][] cs = comb.getCombinations(comb.getTotal().intValue());
    int index = 15;
//    String inputFile = "D:\\Dropbox\\Research\\Nettleton\\SPT\\Mean\\data\\sub_ALL_data.bin";
    String inputFile = "D:\\Dropbox\\Research\\Nettleton\\SPT\\Mean\\test-dependent\\testing-data-" + index + ".bin";
    String outputFile = "D:\\Dropbox\\Research\\Nettleton\\SPT\\Mean\\test-dependent\\testing-data-out-runnable-"+index+".bin";
    double[][] data = BinaryReader.readDouble(inputFile, numberOfTests, sizeOfEachDataSet);
View Full Code Here

TOP

Related Classes of dclong.stat.Combination

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.