Examples of applyScore()


Examples of com.bugyal.imentor.frontend.shared.SearchResult.applyScore()

  @Override
  public void applyScores(List<SearchResult> rList, Participant p) {
    for (int i = 0; i < rList.size(); i++) {
      SearchResult result = rList.get(i);
      result.applyScore(getScore(p, result));
    }
  }

  private double getScore(Participant p, SearchResult result) {
    return 1000 / GeocellUtils.distance(p.getLocation(), new Point(result
View Full Code Here

Examples of com.bugyal.imentor.frontend.shared.SearchResult.applyScore()

  @Override
  public void applyScores(List<SearchResult> rList, Participant p) {
    for (int i = 0; i < rList.size(); i ++) {
      SearchResult result = rList.get(i);
      double score = result.getSubjects().size() + 0.0;
      result.applyScore(score);
    }
  }
}
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.