Difference between revisions of "LIST STAT MEDIAN"

From Second Life Wiki
Jump to navigation Jump to search
m
m (<lsl> tag to <source>)
 
Line 4: Line 4:
|value=4
|value=4
|desc=Calculates the median number in the list.
|desc=Calculates the median number in the list.
<lsl>
<source lang="lsl2">
float median = llListStatistics( LIST_STAT_MEDIAN, numList );
float median = llListStatistics( LIST_STAT_MEDIAN, numList );
</lsl>
</source>
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.
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=

Latest revision as of 14:57, 23 January 2015