Changeset 20489 in project
 Timestamp:
 09/24/10 13:59:46 (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

wiki/eggref/4/statistics
r20488 r20489 36 36 ; (median items) : given a list of numbers, {{items}}, returns the value which separates the upper and lower halves of the list of numbers. 37 37 (median '(1 2 3 4)) => 5/2 38 ; (mode items) : 38 ; (mode items) : given a list of numbers, {{items}}, returns two '''values'''. The first is a list of the ''modes'' and the second is the frequency. (A mode of a list of numbers is the most frequently occurring value.) 39 > (mode '(1 2 3 4)) 40 (1 2 3 4) 41 1 42 > (mode '(1 2 2 3 4)) 43 (2) 44 2 45 > (mode '(1 2 2 3 3 4)) 46 (2 3) 47 2 39 48 ; (geometricmean items) : given a list of numbers, {{items}}, returns the geometric mean of the items (the result of multiplying the items together and then taking the nth root, where n is the number of items). 40 49 (geometricmean '(1 2 3 4 5)) => 2.60517108469735
Note: See TracChangeset
for help on using the changeset viewer.