Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llListStatistics

Kermitt Quirk
Registered User
Join date: 4 Sep 2004
Posts: 267
02-09-2006 18:55
Not that I can think of an immediate use of it atm, but wouldn't it make sense for this function to support strided lists?
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
02-09-2006 19:00
This is a very specific function, which I would rather not complicate to duplicate an existing function like llList2ListStrided. llListStatistics(llList2ListStrided(mylist,0,-1,stride), FUNCTION) will of course work.
_____________________
- Kelly Linden
Iron Perth
Registered User
Join date: 9 Mar 2005
Posts: 802
02-11-2006 06:32
Hey Kelly,

Cool stuff, I always love math functions.

However, can you give us some ideas of what the use/demand for this function were?

I'm sure once I know how other people will be using it, I'll come up with some good of my own.
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
02-11-2006 14:17
I suspect it's because a lot of lists are used for this reason already, so a function specifically for it may be much more efficient in terms of speed and memory.

e.g - my shop has a visitor counter which collects a list of unique (ish due to limit sizes for storing visits that day) visits to my store. So if I had 20 people on Monday, 30 on Tuesday and 40 on Wednesday the list would be:

[20,30,40]

It then gives me various statistical results, such as the average visits per day of 30 (90/3).
Iron Perth
Registered User
Join date: 9 Mar 2005
Posts: 802
02-11-2006 16:53
My guess is that they needed it for internal projects, wrote the code, and figured they might as well give it to us.