dos_moment - dalefugier/DOSLib GitHub Wiki
Calculates the moments of a distribution: Mean, Average Deviation, Standard Deviation, Variance, Skewness, and Kurtosis.
Syntax
(dos_moment numbers)
(dos_moment number1 ...)
Parameters
numbers
The list of numbers.
number1 ...
The series of numbers.
Returns
A list containing the Mean, Average Deviation, Standard Deviation, Variance, Skewness, and Kurtosis, if successful. Note, if Variance = 0, Skewness and Kurtosis will be nil.
nil on error.
Example
Command: (dos_moment '(1 3 2 5 6 2 4 6 8 9 6 5 7 2 3 5 4))
(4.58824 1.84775 2.26547 5.13235 0.210593 -1.04927)
Command: (dos_moment 1 3 2 5 6 2 4 6 8 9 6 5 7 2 3 5 4)
(4.58824 1.84775 2.26547 5.13235 0.210593 -1.04927)