Get Mean value from Array - Node.js Algorithm

Node.js examples for Algorithm:Statistics

Description

Get Mean value from Array

Demo Code

Array.prototype.mean = function(){
    return Math.round( this.sum() / this.length );   
};

Related Tutorials