Sage Modeling and Simulation Library

Extensions..::..GetPercentileForItem Method

Overload List


  Name Description
Public method Static member GetPercentileForItem<(Of <<'(T>)>>)(List<(Of <<'(T>)>>), T, Func<(Of <<'(T, Double>)>>))
Given a list of source items, a target item of the same type as source items, and a lambda expression that returns a double value (a score) from those items, this function will return a double that is the percentile into which that target value falls for the population represented by the list of source items.

Note1: Percentile is the percent of observed values in the srcItems that fall at or below the value of the targetItem.

Note2: If this operation will be performed repeatedly on the same list, use the other form instead.

Public method Static member GetPercentileForItem<(Of <<'(T>)>>)(List<(Of <<'(T>)>>), T, Func<(Of <<'(T, Double>)>>), Object%)
Gets the percentile for item. Note: with [0,1,2,3,3,3], 3 will be in the 50th percentile.