fullpipe/normal-distribution

Simple php lib for basic Normal distribution calculations

dev-master 2016-06-13 12:27 UTC

This package is auto-updated.

Last update: 2024-11-27 01:35:18 UTC


README

Simple php lib for basic Normal distribution calculations

$snd = new \Fullpipe\NormalDistribution\StandardNormalDistribution();
echo $snd->pdf(1);
echo $snd->cdf(1);
echo $snd->invCdf(0.5);

$gnd = new \Fullpipe\NormalDistribution\GeneralNormalDistribution(100, 9);
echo $gnd->pdf(50);
echo $gnd->cdf(50);
echo $gnd->invCdf(0.5);