Changeset 20489 in project


Ignore:
Timestamp:
09/24/10 13:59:46 (9 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [86.129.203.107]:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/statistics

    r20488 r20489  
    3636; (median items) : given a list of numbers, {{items}}, returns the value which separates the upper and lower halves of the list of numbers.
    3737 (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
    3948; (geometric-mean 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).
    4049 (geometric-mean '(1 2 3 4 5)) => 2.60517108469735
Note: See TracChangeset for help on using the changeset viewer.