mqr.spc.util.

c4_fn#

mqr.spc.util.c4_fn(n)#

Direct calculation of the c4 unbiasing constant from the gamma function.

Evaluates:

\[c_4(n) = \frac{ \Gamma\left(\frac{n}{2}\right)\sqrt{\frac{n}{n-1}}}{\Gamma\left(\frac{n-1}{2}\right)} .\]
Parameters:
nint

Sample size.

Returns:
float

The value of c4 for the given sample size.