Class for calculating weighted standard deviation and other statistics from a sample array.