public void addValue(double value,double weight){
  m_WeightedSum+=value * weight;
  m_WeightedSumSquared+=value * value * weight;
  m_SumOfWeights+=weight;
}

public void addValue ( double value , double weight ) { m_WeightedSum += value * weight ; m_WeightedSumSquared += value * value * weight ; m_SumOfWeights += weight ; }
adds a value to the density estimator .
