cdf

open override fun cdf(x: Double): Double(source)

Computes the cumulative distribution function at x using the piecewise quadratic CDF.

Returns (x - a)^2 / ((b - a)(c - a)) for a < x <= c and 1 - (b - x)^2 / ((b - a)(b - c)) for c < x < b.

Return

the probability that a value drawn from this distribution is less than or equal to x.

Parameters

x

the point at which to evaluate the cumulative probability.