Evaluates the normal cumulative density function.

You're viewing an older version of this page (#205). View the current version.

View versions (1)

Interface

#include <codecogs/statistics/distributions/continuous/normal/cdf.h>

using namespace Statistics::Distributions::Continuous::Normal;

This function evaluates the normal cumulative density function. This is also the integral of the Gaussian probability density function (PDF), integrated from minus infinity to x: \graph x=-2:2 m=0 s=1

Example 1

#include <iostream>
#include <codecogs/statistics/distributions/continuous/normal/cdf.h>
using namespace std;
int main()
{
  cout << "normal CDF (0.1, 7, 2.4) = ";
  cout << Stats::Dists::Continuous::Normal::CDF(0.1, 7, 2.4) << endl;
  return 0;
}

Output:

normal CDF (0.1, 7, 2.4) = 0.00202014

Parameters

x
the argument of the cdf
m
the mean of the distribution
s
the standard deviation of the distribution
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

x
m
s
Result