Difference between revisions of "LlListStatistics"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=315|func_sleep=0.0|func_energy=10.0|func=llListStatistics|return_type=integer|p1_type=integer|p1_name=operation|p2_type=list|p2_name=l|func_footnote=Perform statistical aggregate functions on list l using LIST_STAT_* operations.|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=315|func_sleep=0.0|func_energy=10.0
|func=llListStatistics|return_type=integer|p1_type=integer|p1_name=operation|p1_desc=a LIST_STAT_* flag
|p2_type=list|p2_name=src
|func_footnote=If a list entry type is not a float or an integer it is silently ignored.
|func_desc
|return_text=that is the result of performing statistical aggregate function '''operation''' on '''srs'''.
|spec
|caveats
|constants={{{!}}{{Prettytable}}
!Constant
!Value
!Description
{{!}}-
{{!}}{{LSLG|LIST_STAT_RANGE}}
{{!}}0
{{!}}Returns the range.
{{!}}-
{{!}}{{LSLG|LIST_STAT_MIN}}
{{!}}1
{{!}}Retrieves the smallest number.
{{!}}-
{{!}}{{LSLG|LIST_STAT_MAX}}
{{!}}2
{{!}}Retrieves the largest number.
{{!}}-
{{!}}{{LSLG|LIST_STAT_MEAN}}
{{!}}3
{{!}}Retrieves the mean (average).
{{!}}-
{{!}}{{LSLG|LIST_STAT_MEDIAN}}
{{!}}4
{{!}}Retrieves the median number.
{{!}}-
{{!}}{{LSLG|LIST_STAT_STD_DEV}}
{{!}}5
{{!}}Calculates the standard deviation.
{{!}}-
{{!}}{{LSLG|LIST_STAT_SUM}}
{{!}}6
{{!}}Calculates the sum.
{{!}}-
{{!}}{{LSLG|LIST_STAT_SUM_SQUARES}}
{{!}}7
{{!}}Calculates the sum of the squares.
{{!}}-
{{!}}{{LSLG|LIST_STAT_NUM_COUNT}}
{{!}}8
{{!}}Retrieves the amount of float and integer elements.
{{!}}-
{{!}}{{LSLG|LIST_STAT_GEOMETRIC_MEAN}}
{{!}}9
{{!}}Calculates the geometric mean.
{{!}}}
|examples
|helpers
|also_functions
|also_events
|also_tests
|also_articles
|notes
|permission
|negative_index
|sort=ListStatistics
|cat1=List
|cat2=Math
|cat3
|cat4
}}

Revision as of 23:16, 9 February 2007

Summary

Function: integer llListStatistics( integer operation, list src );

Returns an integer that is the result of performing statistical aggregate function operation on srs.

• integer operation a LIST_STAT_* flag
• list src

If a list entry type is not a float or an integer it is silently ignored.

Constant Value Description
LIST_STAT_RANGE 0 Returns the range.
LIST_STAT_MIN 1 Retrieves the smallest number.
LIST_STAT_MAX 2 Retrieves the largest number.
LIST_STAT_MEAN 3 Retrieves the mean (average).
LIST_STAT_MEDIAN 4 Retrieves the median number.
LIST_STAT_STD_DEV 5 Calculates the standard deviation.
LIST_STAT_SUM 6 Calculates the sum.
LIST_STAT_SUM_SQUARES 7 Calculates the sum of the squares.
LIST_STAT_NUM_COUNT 8 Retrieves the amount of float and integer elements.
LIST_STAT_GEOMETRIC_MEAN 9 Calculates the geometric mean.

Examples

Deep Notes

Search JIRA for related Issues

Signature

function integer llListStatistics( integer operation, list src );