/// <summary>
        /// Try to Parse the value.
        /// </summary>
        /// <param name="val">The value.</param>
        /// <param name="result">Sufficient Statistics result.</param>
        /// <returns>Returns true if parsed properly.</returns>
        new public static bool TryParse(string val, out SufficientStatistics result)
        {
            int valAsInt;

            if (int.TryParse(val, out valAsInt))
            {
                result = DiscreteStatistics.GetInstance(valAsInt);
                return(true);
            }
            else
            {
                result = null;
                return(false);
            }
        }
 /// <summary>
 /// Converts current object As Discrete Statistics.
 /// </summary>
 /// <returns>Discrete Statistics.</returns>
 public override DiscreteStatistics AsDiscreteStatistics()
 {
     return(IsMissing() ? DiscreteStatistics.GetMissingInstance : DiscreteStatistics.GetInstance((int)Mean));
 }