FUNCTION
CDF
Evaluates the normal cumulative density function.
You're viewing an older version of this page (#205). View the current version.
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.00202014Parameters
x
the argument of the cdf
m
the mean of the distribution
s
the standard deviation of the distribution
Interactive Calculator
x
m
s
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.