protocol
statisticsp¶
Statistical calculations over a list of numbers protocol.
static(no dependencies on other entities)
Public interface¶
product/2¶
Calculates the product of all list numbers. Fails if the list is empty.
staticproduct(List,Product)product(+list(number),-number) - zero_or_onesum/2¶
Calculates the sum of all list numbers. Fails if the list is empty.
staticsum(List,Sum)sum(+list(number),-number) - zero_or_onemax/2¶
Determines the list maximum value in a list of numbers. Fails if the list is empty.
staticmax(List,Maximum)max(+list,-number) - zero_or_onemin/2¶
Determines the minimum value in a list of numbers. Fails if the list is empty.
staticmin(List,Minimum)min(+list,-number) - zero_or_onerange/2¶
Range is the length of the smallest interval which contains all the numbers in List. Fails if the list is empty.
staticrange(List,Range)range(+list,-number) - zero_or_onearithmetic_mean/2¶
Calculates the arithmetic mean of a list of numbers. Fails if the list is empty.
staticarithmetic_mean(List,Mean)arithmetic_mean(+list(number),-float) - zero_or_onegeometric_mean/2¶
Calculates the geometric mean of a list of numbers. Fails if the list is empty.
staticgeometric_mean(List,Mean)geometric_mean(+list(number),-float) - zero_or_oneharmonic_mean/2¶
Calculates the harmonic mean of a list of numbers. Fails if the list is empty.
staticharmonic_mean(List,Mean)harmonic_mean(+list(number),-float) - zero_or_onemedian/2¶
Calculates the median of a list of numbers. Fails if the list is empty.
staticmedian(List,Median)median(+list(number),-float) - zero_or_oneaverage_deviation/3¶
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.
staticaverage_deviation(List,CentralTendency,Deviation)average_deviation(+list(number),+float,-float) - zero_or_onemean_deviation/2¶
Calculates the mean absolute deviation of a list of numbers. Fails if the list is empty.
staticmean_deviation(List,Deviation)mean_deviation(+list(number),-float) - zero_or_onemedian_deviation/2¶
Calculates the median absolute deviation of a list of numbers. Fails if the list is empty.
staticmedian_deviation(List,Deviation)median_deviation(+list(number),-float) - zero_or_onestandard_deviation/2¶
Calculates the standard deviation of a list of numbers. Fails if the list is empty.
staticstandard_deviation(List,Deviation)standard_deviation(+list(number),-float) - zero_or_onecoefficient_of_variation/2¶
Calculates the coefficient of variation of a list of numbers. Fails if the list is empty.
staticcoefficient_of_variation(List,Coefficient)coefficient_of_variation(+list(number),-float) - zero_or_onerelative_standard_deviation/2¶
Calculates the relative standard deviation of a list of numbers. Fails if the list is empty.
staticrelative_standard_deviation(List,Percentage)relative_standard_deviation(+list(number),-float) - zero_or_oneskewness/2¶
Calculates the (moment) skewness of a list of numbers. Fails if the list is empty.
staticskewness(List,Skewness)skewness(+list(number),-float) - zero_or_onekurtosis/2¶
Calculates the (excess) kurtosis of a list of numbers. Fails if the list is empty.
statickurtosis(List,Kurtosis)kurtosis(+list(number),-float) - zero_or_onevariance/2¶
Calculates the unbiased variance of a list of numbers. Fails if the list is empty.
staticvariance(List,Variance)variance(+list(number),-float) - zero_or_onez_normalization/2¶
Normalizes a list of number such that for the resulting list the mean of is close to zero and the standard deviation is close to 1. Fails if the list is empty.
staticz_normalization(List,NormalizedList)z_normalization(+list(number),-list(float)) - zero_or_onevalid/1¶
Term is a closed list of numbers.
staticvalid(Term)valid(@nonvar) - zero_or_oneProtected interface¶
(none)
Operators¶
(none)
Remarks¶
(none)