Ejemplo n.º 1
0
 public Regle(Motif antecedent, SortedSet consequence, double support, double confiance) {
   this.support = 1.0D;
   this.confiance = 1.0D;
   this.antecedent = antecedent.getItems();
   this.consequence = consequence;
   this.support = support;
   this.confiance = confiance;
 }
Ejemplo n.º 2
0
 @Before
 public void setUp() {
   sequence = new Sequence();
   sequence.setLength(42);
   Options options = new Options();
   options.setBaseUrl("baseUrl");
   sequence.setOptions(options);
   Markup markup = new Markup();
   markup.setStart(24);
   sequence.setMarkups(ImmutableList.of(markup));
   Map<String, Object> metadata = newHashMap();
   metadata.put("key", "value");
   sequence.setMetadata(metadata);
   Motif motif = new Motif();
   motif.setStart(24);
   sequence.setMotifs(ImmutableList.of(motif));
   Region region = new Region();
   region.setStart(24);
   sequence.setRegions(ImmutableList.of(region));
 }