5 lines
92 B
Factor
5 lines
92 B
Factor
|
|
USING: math math.statistics ;
|
||
|
|
|
||
|
|
: arithmetic-mean ( seq -- n )
|
||
|
|
[ 0 ] [ mean ] if-empty ;
|