Skip to main content

cosine_cdf

Function cosine_cdf 

Source
pub fn cosine_cdf(x: f64) -> f64
Expand description

CDF of the standard (raised) cosine distribution, $\frac{\pi + x + \sin x}{2\pi}$

The support is $[-\pi, \pi]$; this returns 0 for $x < -\pi$ and 1 for $x \ge \pi$.

Corresponds to xsf::cosine_cdf, which is used by scipy.stats.cosine.

ยงSee also