prob

 

Description

Probability in a specific range (-z,z) for normal distribution.

Syntax

double prob( double dz )

Parameters

dz
[input] Range of z values (-z to +z) for which the area(probability) under the normal curve is returned (dz can be any Real number).

Return

Area(Probability) under the normal curve between -z and +z.

Examples

EX1

void prob_ex1()
{
    double dA,dz=1;
    dA=prob(dz); // results in dA==0.6826895
}

Remark

This is not a real CDF, However, it can calculate probability under a specific range

See Also

normcdf, invprob

header to Include

origin.h

Reference