Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
integer MAX_ELEMENTS = 10;
|
||||
integer MAX_VALUE = 100;
|
||||
default {
|
||||
state_entry() {
|
||||
list lst = [];
|
||||
integer x = 0;
|
||||
for(x=0 ; x<MAX_ELEMENTS ; x++) {
|
||||
lst += llFrand(MAX_VALUE);
|
||||
}
|
||||
llOwnerSay("lst=["+llList2CSV(lst)+"]");
|
||||
llOwnerSay("Geometric Mean: "+(string)llListStatistics(LIST_STAT_GEOMETRIC_MEAN, lst));
|
||||
llOwnerSay(" Max: "+(string)llListStatistics(LIST_STAT_MAX, lst));
|
||||
llOwnerSay(" Mean: "+(string)llListStatistics(LIST_STAT_MEAN, lst));
|
||||
llOwnerSay(" Median: "+(string)llListStatistics(LIST_STAT_MEDIAN, lst));
|
||||
llOwnerSay(" Min: "+(string)llListStatistics(LIST_STAT_MIN, lst));
|
||||
llOwnerSay(" Num Count: "+(string)llListStatistics(LIST_STAT_NUM_COUNT, lst));
|
||||
llOwnerSay(" Range: "+(string)llListStatistics(LIST_STAT_RANGE, lst));
|
||||
llOwnerSay(" Std Dev: "+(string)llListStatistics(LIST_STAT_STD_DEV, lst));
|
||||
llOwnerSay(" Sum: "+(string)llListStatistics(LIST_STAT_SUM, lst));
|
||||
llOwnerSay(" Sum Squares: "+(string)llListStatistics(LIST_STAT_SUM_SQUARES, lst));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue