LIST STAT MEDIAN

Description

Constant: integer LIST_STAT_MEDIAN = 4;

The integer constant LIST_STAT_MEDIAN has the value 4

Calculates the median number in the list.

float median = llListStatistics( LIST_STAT_MEDIAN, numList );

The median is the number for which half the values are less and half are greater. For example, the median of [1,1,1,2,1000,1000,1000] is 2, while the mean is 429.3.

Caveats


Related Articles

Functions

•  llListStatistics

Deep Notes

Search Canny for related Issues

Signature

integer LIST_STAT_MEDIAN = 4;