22 public static function cumulative($value, $mean, $stdDev)
33 return $e->getMessage();
36 if (($value <= 0) || ($stdDev <= 0)) {
56 public static function distribution($value, $mean, $stdDev, $cumulative =
false)
69 return $e->getMessage();
72 if (($value <= 0) || ($stdDev <= 0)) {
76 if ($cumulative ===
true) {
80 return (1 / (sqrt(2 * M_PI) * $stdDev * $value)) *
81 exp(0 - ((log($value) - $mean) ** 2 / (2 * $stdDev ** 2)));
99 public static function inverse($probability, $mean, $stdDev)
110 return $e->getMessage();
static cumulative($value)
NORMSDIST.
static distribution($value, $cumulative)
NORM.S.DIST.
static distribution($value, $mean, $stdDev, $cumulative=false)
LOGNORM.DIST.
static validateFloat($value)
static inverse($probability, $mean, $stdDev)
LOGINV.
static inverse($value)
NORMSINV.
static validateProbability($probability)
static cumulative($value, $mean, $stdDev)
LOGNORMDIST.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
static validateBool($value)