Package uk.ac.ucl.panda.retrieval

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


            * 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

      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

        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

      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

        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

      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 expectedVi = 1.0;
        double cov = 1.0;
View Full Code Here

        temp[i].score = expectedVi + cov;// 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

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.