sta
sta copied to clipboard
Support computing mode
It would be great if this could track frequency of inputs to provide mode in addition to mean and median. Since a vector of datapoints is already being maintained, the small additional storage for frequency shouldn't be an issue. (If online algorithms for mean and stdev were being used to handle unbounded input streams or reduce memory footprint, I would be more concerned about the space taken by a frequency table.)