% PHI Distribution function of the standardized normal distribution.
%    PHI(X) is the distribution function of the standardized normal
%    distribution of the elements of x.

function res = Phi(x)
res = .5 + .5*erf(x/sqrt(2));
