Skip to content
lsl.devlsl.devLSL Dev

LIST_STAT_GEOMETRIC_MEAN

constant
Constant
integer LIST_STAT_GEOMETRIC_MEAN = 9;

Constant groups

ListStatisticsOperation

Other ListStatisticsOperation values (9)

Returns the geometric mean of a list of numbers.

float geometric_mean = llListStatistics( LIST_STAT_GEOMETRIC_MEAN, numList );

For two numbers, a and b, the geometric mean is llSqrt(a*b). For a list of n numbers, the geometric mean is the n-th root of their product. It indicates the central tendency or typical value to expect. It only works for positive numbers.

In comparison, the arithmetic mean (known as the average) is the sum of the numbers divided by how many numbers there are.

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.