/// <summary> /// Gets the mean as a sparse list. /// </summary> /// <returns>The mean of this distribution.</returns> public ISparseList <double> GetMean() { ISparseList <double> result = SparseList <double> .Constant(Count, CommonValue.GetMean()); var sen = GetSparseEnumerator(); while (sen.MoveNext()) { result[sen.CurrentIndex] = sen.Current.GetMean(); } return(result); }