Difference between revisions of "LIST STAT MEDIAN"
Jump to navigation
Jump to search
m |
m |
||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value=4 | |value=4 | ||
|desc=Calculates the median number in the list. 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. | |desc=Calculates the median number in the list. | ||
<lsl> | |||
float median = llListStatistics( LIST_STAT_MEDIAN, numList ); | |||
</lsl> | |||
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. | |||
|pa= | |pa= | ||
|text= | |text= |
Revision as of 14:36, 10 April 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer LIST_STAT_MEDIAN = 4;The integer constant LIST_STAT_MEDIAN has the value 4
Calculates the median number in the list.
<lsl>
float median = llListStatistics( LIST_STAT_MEDIAN, numList );
</lsl>
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 |