/** * Returns the moments of the distribution * * @param string $moments Which moments to compute. m for mean, v for variance, s for skew, k for kurtosis. Default 'mv' * @return type array A dictionary containing the first four moments of the distribution */ public function stats($moments = 'mv') { return $this->calculator->getStats($moments, $this->lambda, $this->k); }
/** * Returns the moments of the distribution * * @param string $moments Which moments to compute. m for mean, v for variance, s for skew, k for kurtosis. Default 'mv' * @param float $sigma The scale parameter * @return type array A dictionary containing the first four moments of the distribution * @static */ public function getStats($moments = 'mv', $sigma = 1) { $lambda = $this->convertSigmaToLambda($sigma); return $this->wei->getStats($moments, $lambda, 2); }