The input array is treated as histogram, i.e. its indexes are treated as values of stochastic function, but array values are treated as "probabilities" (total amount of hits).
public static double HistogramStandardDeviation(this int[] values) { return StandardDeviation(values, Mean(values)); }