/// <summary> /// Estimates the first quartile value from the provided samples. /// Approximately median-unbiased regardless of the sample distribution (R8). /// </summary> /// <param name="data">The data sample sequence.</param> public static double LowerQuartile(this IEnumerable <double?> data) { if (data == null) { throw new ArgumentNullException("data"); } var array = data.Where(d => d.HasValue).Select(d => d.Value).ToArray(); return(ArrayStatistics.LowerQuartileInplace(array)); }
/// <summary> /// Estimates the first quartile value from the provided samples. /// Approximately median-unbiased regardless of the sample distribution (R8). /// </summary> /// <param name="data">The data sample sequence.</param> public static double LowerQuartile(this IEnumerable <double> data) { if (data == null) { throw new ArgumentNullException("data"); } var array = data.ToArray(); return(ArrayStatistics.LowerQuartileInplace(array)); }
/// <summary> /// Estimates the first quartile value from the provided samples. /// Approximately median-unbiased regardless of the sample distribution (R8). /// </summary> /// <param name="data">The data sample sequence.</param> public static double LowerQuartile(this IEnumerable <double?> data) { var array = data.Where(d => d.HasValue).Select(d => d.Value).ToArray(); return(ArrayStatistics.LowerQuartileInplace(array)); }
/// <summary> /// Estimates the first quartile value from the provided samples. /// Approximately median-unbiased regardless of the sample distribution (R8). /// </summary> /// <param name="data">The data sample sequence.</param> public static double LowerQuartile(this IEnumerable <double> data) { var array = data.ToArray(); return(ArrayStatistics.LowerQuartileInplace(array)); }