komm.qfunc
Computes the Gaussian Q-function. It is given by $$ \mathrm{Q}(x) = \frac{1}{\sqrt{2\pi}} \int_x^\infty \mathrm{e}^{-u^2/2} \, \mathrm{d}u. $$
Parameters:
-
x
(float | ArrayND[float]
) –The input to the function. May be any float or array of floats.
Returns:
-
y
(SameAsInput
) –The value $y = \mathrm{Q}(x)$.
Examples:
>>> komm.qfunc(0.0)
0.5
>>> komm.qfunc([-1.0, 0.0, 1.0])
array([0.84134475, 0.5 , 0.15865525])