public void clear(){
  n=0;
  Arrays.fill(sums,0.0);
  Arrays.fill(productsSums,0.0);
}

public void clear ( ) { n = 0 ; Arrays . fill ( sums , 0.0 ) ; Arrays . fill ( productsSums , 0.0 ) ; }
clears the internal state of the statistic
