In the Percentile class compute Method has bug :
/// <summary>
/// Computes the percentile.
/// </summary>
/// <param name="percentile">The percentile, must be between 0.0 and 1.0 (inclusive).</param>
/// <returns>the requested percentile.</returns>
public double Compute(double percentile)
{
if (percentile < 0 || percentile > 100)
{
throw new ArgumentException("Percentile value must be between 0 and 100.");
}
1.
if (percentile < 0 || percentile > 100) this check must be like :
if (percentile < 0 || percentile > 1)
2.
throw new ArgumentException("Percentile value must be between 0 and 100.");
throw new ArgumentException("Percentile value must be between 0 and 1.");
/// <summary>
/// Computes the percentile.
/// </summary>
/// <param name="percentile">The percentile, must be between 0.0 and 1.0 (inclusive).</param>
/// <returns>the requested percentile.</returns>
public double Compute(double percentile)
{
if (percentile < 0 || percentile > 100)
{
throw new ArgumentException("Percentile value must be between 0 and 100.");
}
1.
if (percentile < 0 || percentile > 100) this check must be like :
if (percentile < 0 || percentile > 1)
2.
throw new ArgumentException("Percentile value must be between 0 and 100.");
throw new ArgumentException("Percentile value must be between 0 and 1.");