CDF

Comulative density function interface

interface CDF (
T
) {}

Members

Functions

opCall
T opCall(T x)

Call operator

Examples

import std.traits, std.mathspecial;

class NormalCDF : CDF!real
{
	real opCall(real x)
	{
		return normalDistribution(x);
	}
}

auto cdf = new NormalCDF;
auto x = cdf(0.1);
assert(isNormal(x));

Meta