Examples of collect()


Examples of org.lightfish.business.servermonitoring.control.collectors.DataCollector.collect()

    }

    @Test
    public void action_that_fails() throws Exception {
        DataCollector collector = mock(DataCollector.class);
        when(collector.collect())
                .thenThrow(new Exception("Ahh!!"))
                .thenThrow(new Exception("Another Ahh!!"));
        Future compute = action.compute(collector);
        assertNull(compute.get());
        assertEquals("Another Ahh!!", action.getThrownException().getMessage());
View Full Code Here

Examples of org.mmtk.plan.CollectorContext.collect()

   */
  public final void triggerCollection(int why) throws InterruptiblePragma {
      //System.out.println("org.apache.HarmonyDRLVM.mm.mmtk.Collection.triggerCollection() -2- has been called why = " + why);
      //VM.assertions._assert(false);
      CollectorContext cc = SelectedPlan.ap.collector();
      cc.collect();
  }
 

  /**
   * Triggers a collection without allowing for a thread switch.  This is needed
View Full Code Here

Examples of org.ops4j.pax.exam.spi.ContentCollector.collect()

    }

    private Map<String, URL> collectResources() throws IOException {
        ContentCollector collector = selectCollector();
        Map<String, URL> map = new HashMap<String, URL>();
        collector.collect(map);
        return map;
    }

    static String convertClassToPath(Class<?> c) {
        return c.getName().replace(".", File.separator) + ".class";
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopDocCollector.collect()

    // System.out.println("number: "+temp.length);
    TopDocCollector collector = null;
    for (int d = 0; d < 19; d++) {
      collector = new TopDocCollector(temp.length);
      for (int j = 0; j <= d; j++) {
        collector.collect(temp[j].doc, temp[j].score + 100.0d);
      }
      for (int i = d + 1; i < temp.length; i++) {
        temp[i].score -= c / Math.log(d + 2) / log2toe
            * correlation(temp[d].doc, temp[i].doc);
        // c *correlation(temp[d].doc,temp[i].doc);
 
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopDocCollector.collect()

            * correlation(temp[d].doc, temp[i].doc);
        // c *correlation(temp[d].doc,temp[i].doc);
        // System.out.println(temp[d].doc+"  "+temp[i].doc);
        // System.out.println("Score: "+temp[i].score +
        // " Correlation: "+correlation(temp[d].doc,temp[i].doc));
        collector.collect(temp[i].doc, temp[i].score);
      }
      f_td = collector.topDocs();
      temp = f_td.scoreDocs;
    }
    return f_td;
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopMeanVarianceDocCollector.collect()

    // System.out.println("number: "+temp.length);
    TopMeanVarianceDocCollector collector = null;
    for (int d = 0; d < 19; d++) {
      collector = new TopMeanVarianceDocCollector(temp.length);
      for (int j = 0; j <= d; j++) {
        collector.collect(temp[j].doc, temp[j].score + 100.0d,
            temp[j].mean, temp[j].variance);
      }
      for (int i = d + 1; i < temp.length; i++) {
        temp[i].score -= c / Math.log(d + 2) / log2toe
            * correlation(temp[d].doc, temp[i].doc) * 0.01;
 
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopMeanVarianceDocCollector.collect()

            * correlation(temp[d].doc, temp[i].doc) * 0.01;
        // c *correlation(temp[d].doc,temp[i].doc);
        // System.out.println(temp[d].doc+"  "+temp[i].doc);
        // System.out.println("Score: "+temp[i].score +
        // " Correlation: "+correlation(temp[d].doc,temp[i].doc));
        collector.collect(temp[i].doc, temp[i].score, temp[i].mean,
            temp[i].variance);
      }
      f_td = collector.topDocs();
      temp = f_td.MeanVariancescoreDocs;
    }
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopMeanVarianceDocCollector.collect()

      scoreHM.put(temp[k].doc, temp[k].score);
    }
    for (int d = 0; d < 19; d++) {
      collector = new TopMeanVarianceDocCollector(temp.length);
      for (int j = 0; j <= d; j++) {
        collector.collect(temp[j].doc, temp[j].score + 100.0d,
            temp[j].mean, temp[j].variance);
      }
      for (int i = d + 1; i < temp.length; i++) {
        double currentScore = Double.parseDouble(scoreHM.get(
            temp[i].doc).toString());
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopMeanVarianceDocCollector.collect()

        temp[i].score = adjustAmount;// *temp[d].score*temp[i].score;
        // c *correlation(temp[d].doc,temp[i].doc);
        // System.out.println(temp[d].doc+"  "+temp[i].doc);
        // System.out.println("Score: "+temp[i].score +
        // " Correlation: "+correlation(temp[d].doc,temp[i].doc));
        collector.collect(temp[i].doc, temp[i].score, temp[i].mean,
            temp[i].variance);
        // temp[i].score-= c /Math.log(d+2)/ log2toe
        // *correlation(temp[d].doc,temp[i].doc);
        // //c *correlation(temp[d].doc,temp[i].doc);
        // // System.out.println(temp[d].doc+"  "+temp[i].doc);
View Full Code Here

Examples of uk.ac.ucl.panda.retrieval.TopMeanVarianceDocCollector.collect()

      scoreHM.put(temp[k].doc, temp[k].score);
    }
    for (int d = 0; d < 19; d++) {
      collector = new TopMeanVarianceDocCollector(temp.length);
      for (int j = 0; j <= d; j++) {
        collector.collect(temp[j].doc, temp[j].score + 100.0d,
            temp[j].mean, temp[j].variance);
      }
      for (int i = d + 1; i < temp.length; i++) {
        double currentScore = Double.parseDouble(scoreHM.get(
            temp[i].doc).toString());
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.