double cauchyp(double x, double m, double s);
Returns the value of the Cauchy random variable distribution function with median m and scale parameter s at the value x.
Parameters:
x | Critical point. |
---|---|
m | Location parameter. |
s | Shape parameter. |
Returns:
P(X ≤ x | m, s)
Errors:
NUMERICS_ERROR
is raised if s ≤ 0
Usage:
double p = cauchyp(.5, 1.5, 2.75)
Header:
#include "contdist.h"