Scientific Calculator

(public) silentmatt/average

By silentmatt Matthew Crumley

Calculate the average (mean) of a list of numbers

Tagged: statistics

avg = function(list) {
    apply(:+, list) / len list;
};

spam? | offensive?

0 Comments

Sign in to leave a comment