Implement calculation of mean for histograms and calculation of variance and standard deviation for data sets.