@xyzblocks/math
v1.0.1
Published
Math Library
Downloads
2
Readme
@xyzblocks/math
Math Libraries
Installation
npm install @xyzblocks/math --save
API
NormalDistribution
probabilityDensity
const probabilityDensity: number = NormalDistribution.probabilityDensity(394, 147.32277488562318, 500)
// 0.002090377189199082
Statistics
mean
const mean: number = Statistics.mean([6, 11, 7]);
// 8
standardDeviation
const standardDeviation: number = Statistics.standardDeviation([600, 470, 170, 430, 300]);
// 147.32277488562318