Clone this StatCounter
      
    
      
    
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
      
    
      
    
      
    
      
    
      
    
      Merge another StatCounter into this one, adding up the internal statistics.
      
    
      Add multiple values into this StatCounter, updating the internal statistics.
      
    
      Add a value into this StatCounter, updating the internal statistics.
      
    
      
    
      
    
      
      
    
      
      
    
      
      
    
      Return the population standard deviation of the values.
Return the population standard deviation of the values.
      
    
      Return the population variance of the values.
Return the population variance of the values.
      
    
      Return the sample standard deviation of the values, which corrects for bias in estimating the variance by dividing by N-1 instead of N.
      
    
      Return the sample variance, which corrects for bias in estimating the variance by dividing by N-1 instead of N.
      
    
      Return the population standard deviation of the values.
      
    
      
    
      
    
      
      
    
      
      
    
      Return the population variance of the values.
      
    
      
      
    
      
      
    
      
A class for tracking the statistics of a set of numbers (count, mean and variance) in a numerically robust way. Includes support for merging two StatCounters. Based on Welford and Chan's algorithms for running variance.