• https://me.yahoo.com
COST (GBP)
0.10
0.80
0

CDF

viewed 1941 times and licensed 63 times
Evaluates the standard normal cumulative density function.
Controller: CodeCogs
Contents

C++

CDF

 doubleCDF( double x )[inline]
This function evaluates the standard normal cumulative density function, which is the area under the Gaussian probability density function, integrated over the range $\inline&space;[-\infty,&space;x]$:
$CDF_{stdnorm}(x)&space;=&space;\frac{1}{\sqrt{2&space;\pi}}&space;\int_{-\infty}^x&space;e^{-t^2/2}&space;\:&space;dt&space;=&space;\frac{1}{2}(1+erf(z))$
where $\inline&space;z=x/\sqrt&space;2$ and erf is the error function computed using errorFn.

This function has the following form:
There is an error with your graph parameters for CDF with options x=-4:4

Error Message:Function CDF failed. Ensure that: Invalid C++

Example 1

#include <iostream>
#include <codecogs/statistics/distributions/continuous/stdnormal/cdf.h>
using namespace std;
int main()
{
cout << "standard normal CDF (0.3) = ";
cout << Stats::Dists::Continuous::StdNormal::CDF(0.3) << endl;
return 0;
}
Output:
standard normal CDF (0.3) = 0.617911

References

http://mathworld.wolfram.com/StandardNormalDistribution.html

Parameters

 x The upper limit on the integral

Authors

Lucian Bentea (September 2005)
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.