Examples of DescriptiveStatisticsImpl


Examples of org.apache.commons.math.stat.descriptive.DescriptiveStatisticsImpl

      scoresForEntity.get(surf).add(ne.getConfidence());
    }
    averageScores = new HashMap<String,Double>();
    maxScores = new HashMap<String,Double>();
    for(String surf : scoresForEntity.keySet()) {
      DescriptiveStatistics descStats = new DescriptiveStatisticsImpl();
      for(double score : scoresForEntity.get(surf)) {
        descStats.addValue(score);
      }
      maxScores.put(surf, descStats.getMax());
      averageScores.put(surf, descStats.getMean());
    }
   
    Map<Token,NamedEntity> neByLastToken = new HashMap<Token,NamedEntity>();
    for(NamedEntity ne : entities) {
      if(!ne.isBlocked()) {
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.