An extension to the rectified Gaussian distribution was proposed by Palmer et al., allowing rectification between arbitrary lower and upper bounds. For lower and upper bounds a and b respectively, the cdf, F_{R}(x|\mu,\sigma^2) is given by: : F_{R}(x|\mu,\sigma^2) = \begin{cases} 0, & x where \Phi(x|\mu,\sigma^2) is the cdf of a normal distribution with mean \mu and variance \sigma^2. The mean and variance of the rectified distribution is calculated by first transforming the constraints to be acting on a standard normal distribution: :c = \frac{a - \mu}{\sigma}, \qquad d = \frac{b - \mu}{\sigma}. Using the transformed constraints, the mean and variance, \mu_{R} and \sigma^2_{R} respectively, are then given by: : \mu_{t} = \frac{1}{\sqrt{2\pi}} \left(e^\left( -\frac{c^{2}}{2}\right) - e^\left( -\frac{d^{2}}{2}\right)\right) + \frac{c}{2}\left(1 + \textrm{erf}\left( \frac{c}{\sqrt{2}}\right) \right) + \frac{d}{2}\left(1 - \textrm{erf}\left( \frac{d}{\sqrt{2}}\right) \right), : \begin{align} \sigma_{t}^{2} & = \frac{\mu_{t}^{2} + 1}{2}\left(\textrm{erf}\left(\frac{d}{\sqrt{2}}\right) - \textrm{erf}\left(\frac{c}{\sqrt{2}}\right) \right) - \frac{1}{\sqrt{2\pi}}\left(\left(d-2\mu_{t}\right) e^\left(-\frac{d^{2}}{2}\right) - \left(c-2\mu_{t}\right)e^\left(-\frac{c^{2}}{2}\right)\right) \\ &+ \frac{\left(c - \mu_{t}\right)^{2}}{2}\left(1 + \textrm{erf}\left(\frac{c}{\sqrt{2}}\right)\right) + \frac{\left(d - \mu_{t}\right)^{2}}{2}\left(1 - \textrm{erf}\left(\frac{d}{\sqrt{2}}\right)\right), \end{align} : \mu_{R} = \mu + \sigma\mu_{t}, : \sigma^2_{R} = \sigma^2\sigma_{t}^2, where is the
error function. This distribution was used by Palmer et al. for modelling physical resource levels, such as the quantity of liquid in a vessel, which is bounded by both 0 and the capacity of the vessel. == See also ==