MathPHP\Probability\Distribution\Continuous\NoncentralT::mean PHP 메소드

mean() 공개 정적인 메소드

= Does not exist if ν ≤ 1
public static mean ( integer , number ) : number
integer Degrees of freedom
number Noncentrality parameter
리턴 number
    public static function mean(int $ν, $μ)
    {
        Support::checkLimits(self::LIMITS, ['ν' => $ν, 'μ' => $μ]);
        if ($ν == 1) {
            return \NAN;
        }
        return $μ * sqrt($ν / 2) * Special::gamma(($ν - 1) / 2) / Special::gamma($ν / 2);
    }