protocol
Statistical calculations over a list of numbers protocol.
Paulo Moura
1.01
2009/1/5
static
(no dependencies on other files)
Calculates the product of all list numbers. Fails if the list is empty.
static
product(List,Product)
product(+list(number),-number) – zero_or_one
Calculates the sum of all list numbers. Fails if the list is empty.
static
sum(List,Sum)
sum(+list(number),-number) – zero_or_one
Determines the list maximum value in a list of numbers. Fails if the list is empty.
static
max(List,Maximum)
max(+list,-number) – zero_or_one
Determines the minimum value in a list of numbers. Fails if the list is empty.
static
min(List,Minimum)
min(+list,-number) – zero_or_one
Range is the length of the smallest interval which contains all the numbers in List. Fails if the list is empty.
static
range(List,Range)
range(+list,-number) – zero_or_one
Calculates the arithmetic mean of a list of numbers. Fails if the list is empty.
static
arithmetic_mean(List,Mean)
arithmetic_mean(+list(number),-float) – zero_or_one
Calculates the geometric mean of a list of numbers. Fails if the list is empty.
static
geometric_mean(List,Mean)
geometric_mean(+list(number),-float) – zero_or_one
Calculates the harmonic mean of a list of numbers. Fails if the list is empty.
static
harmonic_mean(List,Mean)
harmonic_mean(+list(number),-float) – zero_or_one
Calculates the median of a list of numbers. Fails if the list is empty.
static
median(List,Median)
median(+list(number),-float) – zero_or_one
Calculates the average absolute deviation of a list of numbers given a central tendency (e.g. mean, median, or mode). Fails if the list is empty.
static
average_deviation(List,CentralTendency,Deviation)
average_deviation(+list(number),+float,-float) – zero_or_one
Calculates the mean absolute deviation of a list of numbers. Fails if the list is empty.
static
mean_deviation(List,Deviation)
mean_deviation(+list(number),-float) – zero_or_one
Calculates the median absolute deviation of a list of numbers. Fails if the list is empty.
static
median_deviation(List,Deviation)
median_deviation(+list(number),-float) – zero_or_one
Calculates the standard deviation of a list of numbers. Fails if the list is empty.
static
standard_deviation(List,Deviation)
standard_deviation(+list(number),-float) – zero_or_one
Calculates the coefficient of variation of a list of numbers. Fails if the list is empty.
static
coefficient_of_variation(List,Coefficient)
coefficient_of_variation(+list(number),-float) – zero_or_one
Calculates the relative standard deviation of a list of numbers. Fails if the list is empty.
static
relative_standard_deviation(List,Percentage)
relative_standard_deviation(+list(number),-float) – zero_or_one
Calculates the (moment) skewness of a list of numbers. Fails if the list is empty.
static
skewness(List,Skewness)
skewness(+list(number),-float) – zero_or_one
Calculates the (excess) kurtosis of a list of numbers. Fails if the list is empty.
static
kurtosis(List,Kurtosis)
kurtosis(+list(number),-float) – zero_or_one
Calculates the unbiased variance of a list of numbers. Fails if the list is empty.
static
variance(List,Variance)
variance(+list(number),-float) – zero_or_one
Term is a closed list of numbers.
static
valid(Term)
valid(@nonvar) – zero_or_one
(none)
static
static
static
static