Example #1
0
 public void setEmpiricalWeight(int sampleNumber) {
   for (FeatureValue featureValue : featureMap.values()) {
     featureValue.setEmpiricalWeight(1.0 * featureValue.getCount() / sampleNumber);
   }
 }