@Override public void addValue(double value,double weight){
  m_WeightedSum+=value * weight;
  m_WeightedSumSquared+=value * value * weight;
  m_SumOfWeights+=weight;
  if (m_TM.get(value) == null) {
    m_TM.put(value,weight);
  }
 else {
    m_TM.put(value,m_TM.get(value) + weight);
  }
}

@ Override public void addValue ( double value , double weight ) { m_WeightedSum += value * weight ; m_WeightedSumSquared += value * value * weight ; m_SumOfWeights += weight ; if ( m_TM . get ( value ) == null ) { m_TM . put ( value , weight ) ; } else { m_TM . put ( value , m_TM . get ( value ) + weight ) ; } }
adds a value to the density estimator .
