.FloatArrayStat.Sn (gb.gsl)

Function Sn ( [ Sorted As Boolean, Bias As Boolean, Buffer As Float[] ] ) As Float

This function returns the Sn statistic of the current array data. The elements of the array must be in ascending numerical order.

This function requires ab additional workspace buffer.

  • Sorted tells if the data is already sorted. If FALSE, then an internal sorted copy of the current array will be done.

  • If Bias is TRUE, then the returned value will be multiplied by a correction factor to make it unbiased.

  • Buffer is the workspace buffer. It is a float array whose size must be the same size as the current data array.

See also