Rectified Normal
- greybox.distributions.drectnorm(q, loc=0, scale=1, log=False)[source]
Rectified Normal distribution density.
f_y = I(x<=0) * F_x(loc, scale) + I(x>0) * f_x(x, loc, scale)
- Parameters:
q (array_like) – Quantiles.
loc (float) – Location parameter.
scale (float) – Scale parameter.
log (bool) – If True, return log-density.
- Returns:
Density values.
- Return type:
array
- greybox.distributions.prectnorm(q, loc=0, scale=1)[source]
Rectified Normal distribution CDF.
- Parameters:
q (array_like) – Quantiles.
loc (float) – Location parameter.
scale (float) – Scale parameter.
- Returns:
CDF values.
- Return type:
array