Package org.apache.commons.lang.mutable

Examples of org.apache.commons.lang.mutable.MutableDouble.doubleValue()


      // also compute the max value across all Stores on this server
      final String maxKey = getStoreMetricNameMax(storeMetricType);
      MutableDouble cur = tmpMap.get(maxKey);
      if (cur == null) {
        tmpMap.put(maxKey, new MutableDouble(val));
      } else if (cur.doubleValue() < val) {
        cur.setValue(val);
      }
    } else {
      ALL_SCHEMA_METRICS.accumulateStoreMetric(tmpMap, storeMetricType, val);
    }
View Full Code Here


          throw new IllegalStateException(e);
        }
        return true;
      }
    });
    return result.doubleValue();
  }
 
  @Override
  public Collection<String> getLabels(Datastore datastore) throws InvalidDatastoreException {
    return datastore.getKeys("labelWeight");
View Full Code Here

          throw new IllegalStateException(e);
        }
        return true;
      }
    });
    return result.doubleValue();
  }
 
  @Override
  public Collection<String> getLabels(Datastore datastore) throws InvalidDatastoreException {
    return datastore.getKeys("labelWeight");
View Full Code Here

        lengthNormalisationMut.add(dKJ * dKJ);
        return true;
      }
    });
   
    final double lengthNormalisation = Math.sqrt(lengthNormalisationMut.doubleValue());
   
    // Output Length Normalized + TF Transformed Frequency per Word per Class
    // Log(1 + D_ij)/SQRT( SIGMA(k, D_kj) )
    wordList.forEachPair(new ObjectIntProcedure<String>() {
      @Override
View Full Code Here

      // also compute the max value across all Stores on this server
      final String maxKey = getStoreMetricNameMax(storeMetricType);
      MutableDouble cur = tmpMap.get(maxKey);
      if (cur == null) {
        tmpMap.put(maxKey, new MutableDouble(val));
      } else if (cur.doubleValue() < val) {
        cur.setValue(val);
      }
    } else {
      ALL_SCHEMA_METRICS.accumulateStoreMetric(tmpMap, storeMetricType, val);
    }
View Full Code Here

      // also compute the max value across all Stores on this server
      final String maxKey = getStoreMetricNameMax(storeMetricType);
      MutableDouble cur = tmpMap.get(maxKey);
      if (cur == null) {
        tmpMap.put(maxKey, new MutableDouble(val));
      } else if (cur.doubleValue() < val) {
        cur.setValue(val);
      }
    } else {
      ALL_SCHEMA_METRICS.accumulateStoreMetric(tmpMap, storeMetricType, val);
    }
View Full Code Here

        lengthNormalisationMut.add(squared);
        return true;
      }
    });
   
    final double lengthNormalisation = Math.sqrt(lengthNormalisationMut.doubleValue());
   
    // Output Length Normalized + TF Transformed Frequency per Word per Class
    // Log(1 + D_ij)/SQRT( SIGMA(k, D_kj) )
    wordList.forEachPair(new ObjectIntProcedure<String>() {
      @Override
View Full Code Here

          throw new IllegalStateException(e);
        }
        return true;
      }
    });
    return result.doubleValue();
  }

}
View Full Code Here

          throw new IllegalStateException(e);
        }
        return true;
      }
    });
    return result.doubleValue();
  }
}
View Full Code Here

          throw new IllegalStateException(e);
        }
        return true;
      }
    });
    return result.doubleValue();
  }
 
  @Override
  public Collection<String> getLabels(Datastore datastore) throws InvalidDatastoreException {
    return datastore.getKeys("labelWeight");
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.