Examples of shuffle()


Examples of bgu.bio.adt.rna.RNASpecificTree.shuffle()

    sR.buildFromViennaFormat(
        "GAUAGAUGGUCUGGGUGUCGCCAGAUCGGGGUNCAAUUCCCCGUCGCCA"
            .toCharArray(),
        "((..(......)(((.....)))...(((((.......)))))))...."
            .toCharArray());
    sR.shuffle(rand);
    sR.toFASTAFile("sR.fasta");
    sR.toDotFile("sR.dot", false);
    s.toDotFile("s.dot", false);
    t.toDotFile("t.dot", false);
    prune2.calculateCost(t);
View Full Code Here

Examples of bgu.bio.adt.rna.RNASpecificTree.shuffle()

    sR.buildFromViennaFormat(
        "GAUAGAUGGUCUGGGUGUCGCCAGAUCGGGGUNCAAUUCCCCGUCGCCA"
            .toCharArray(),
        "((..(......)(((.....)))...(((((.......)))))))...."
            .toCharArray());
    sR.shuffle(rand);
    prune.calculateCost(t);
    prune.calculateCost(s);
    prune.calculateCost(sR);

    smooth.calculateCost(t);
View Full Code Here

Examples of bgu.bio.adt.rna.RNASpecificTree.shuffle()

    tree2.buildFromViennaFormat(
        "aaaaaaAAAgggggggAAaaaaaAAAuuuuuAAuuuuAAAaaAaaAAccccAcccAAAAAAgggAAAgggggAAccccccAAAggggggAAaaaaAAAAAuuuuAAcccccAAAcccAAAAuuuuuu"
            .toCharArray(),
        "((((((...(((((((..(((((...)))))..((((...)).))..)))).)))......(((...(((((..((((((...))))))..((((.....))))..)))))...)))....))))))"
            .toCharArray());
    tree2.shuffle();
    tree2.shuffle();

    Assert.assertEquals(
        "The probabilty is slim!, can't get the same tree after the shuffle",
        false, tree1.equals(tree2));
View Full Code Here

Examples of bgu.bio.adt.rna.RNASpecificTree.shuffle()

        "aaaaaaAAAgggggggAAaaaaaAAAuuuuuAAuuuuAAAaaAaaAAccccAcccAAAAAAgggAAAgggggAAccccccAAAggggggAAaaaaAAAAAuuuuAAcccccAAAcccAAAAuuuuuu"
            .toCharArray(),
        "((((((...(((((((..(((((...)))))..((((...)).))..)))).)))......(((...(((((..((((((...))))))..((((.....))))..)))))...)))....))))))"
            .toCharArray());
    tree2.shuffle();
    tree2.shuffle();

    Assert.assertEquals(
        "The probabilty is slim!, can't get the same tree after the shuffle",
        false, tree1.equals(tree2));
  }
View Full Code Here

Examples of cern.colt.list.DoubleArrayList.shuffle()

   
    //System.out.println("unshuffled="+list);
    if (doShuffle) {
      Timer timer3 = new Timer().start();
      list.shuffle();
      System.out.println("shuffling took ");
      timer3.stop().display();
    }
    //System.out.println("shuffled="+list);
    //list.sort();
View Full Code Here

Examples of cern.colt.list.DoubleArrayList.shuffle()

   
    //System.out.println("unshuffled="+list);
    if (doShuffle) {
      Timer timer3 = new Timer().start();
      list.shuffle();
      System.out.println("shuffling took ");
      timer3.stop().display();
    }
    //System.out.println("shuffled="+list);
    //list.sort();
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.shuffle()

        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }

    /**
     * Summarize with conflict grouping key and aggregation target.
     */
 
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.shuffle()

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(2));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "grouping", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "grouping", "count")));
        assertThat(term.shuffle(), is(grouping("grouping")));
    }

    private Matcher<Key> grouping(final String... properties) {
        return new BaseMatcher<Key>() {
            @Override
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.shuffle()

        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "valueA", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }

    /**
     * simple record.
     */
 
View Full Code Here

Examples of com.carrotsearch.randomizedtesting.annotations.ParametersFactory.shuffle()

      if (result.isEmpty()) {
        throw new InternalAssumptionViolatedException("Parameters set should not be empty. Ignoring tests.");
      }

      if (pfAnnotation.shuffle()) {
        Collections.shuffle(result, new Random(runnerRandomness.getSeed()));
      }

      parameters.addAll(result);
    }
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.