# Functions
SampleMean returns the mean of a slice, calculated as the average over the values in the slice.
SampleVariance returns the variance of a slice, calculated as the sum of sqaures of the distance to the mean of each of the values, divided by the number of values.