The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math2
Class: none
Declaration: function CalcRanks (Data, Ranks: TVector): double;

The function CalcRanks calculates the ranks of the vector Data and returns the ranks in the vector Ranks. If ties occur the corresponding rank numbers reflect the average rank of the tied observations. The function returns a correction value which can be used, for example, in the Friedman test to allow for ties. This correction value is the sum over all ties of t*(t2-1), with t being the multiplicity of each tie. If no ties occur, the returned correction value is zero.

Last Update: 2019-Nov-08