StatisticalProceduresPercentile Method Mathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library
Calculates a percentile using the nearest rank method

Namespace: Mathos.Statistics
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax

public static decimal Percentile(
	this List<decimal> list,
	double p
)

Parameters

list
Type: System.Collections.GenericListDecimal
List of numbers to calculate the percentile from
p
Type: SystemDouble
Percentile to calculate, ranging from zero to one

Return Value

Type: Decimal
Percentile if the list has elements and p is between 0 and 1, otherwise returns zero

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListDecimal. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference