Skip to content

pwstegman/pw-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pw-stat

Statistics in JavaScript

Installation

npm install pw-stat

Getting Started

var stat = require('pw-stat');

var a = [
	[19, 28],
	[63, 32],
	[56, 96]
];

// Compute the mean of each column
var mean = stat.mean(a);

// Compute the sample covariance matrix
var cov = stat.cov(a);

console.log(mean); // [ 46, 52 ]
console.log(cov); // [ [ 559, 374 ], [ 374, 1456 ] ]

Documentation

Documentation is available at http://pwstegman.me/pw-stat/

Releases

No releases published

Packages

No packages published