You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Structs, Records, Enums > Dew.Stats.TPercentileMethod Enumeration
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Dew.Stats.TPercentileMethod Enumeration

Defines methods for calculatating percentile.

Syntax
C#
Visual Basic
public enum TPercentileMethod : uint { pctMethodNPlus = 0, pctMethodNMinus = 1, pctMethodClosestN = 2, pctMethodEDF = 3, pctMethodEDFAve = 4 }

Statistics.cs

Members 
Description 
pctMethodNPlus = 0 
The 100pth percentile is computed as Zp = (1-d)X[k] + dX[k+1] where k+1 equals the integer part of P(n+1), d is the fractional part of p(n+1), and X[k-1] is the kth observation when the data are sorted from lowest to highest. 
pctMethodNMinus = 1 
The 100pth percentile is computed as Zp = (1-d)X[k] + dX[k+1] where k+1 equals the integer part of P(n-1)+1, d is the fractional part of p(n+1), and X[k-1] is the kth observation when the data are sorted from lowest to highest. 
pctMethodClosestN = 2 
The 100pth percentile is computed as Zp = X[k] where k+1 equals the integer that is closest to np and X[k-1] is the kth observation when the data are sorted from lowest to highest. 
pctMethodEDF = 3 
The 100pth percentile is computed as Zp = X[k] where k+1 equals the integer part of np if np is exactly an integer or the integer part of np+1 if np is not exactly an integer. X[k-1] is the kth observation when the data are sorted from lowest to highest. Note that EDF stands for empirical distribution function. 
pctMethodEDFAve = 4 
The 100pth percentile is computed as Zp = 0.5*(X[k1] + X[k2])y where k1 and k2 are defined as follows: If np is an integer, k1=k2=np. If np is not exactly an integer, k1 equals the integer part of np and k2 = k1+1. X[k-1] is the kth observation when the data are sorted from lowest to highest. Note that EDF stands for empirical distribution function. 
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!