CDF

Comulative density function interface

interface CDF (
T
) {}

Members

Functions

opCall
T opCall(T x)

Call operator

Examples

1 import std.traits, std.mathspecial;
2 
3 class NormalCDF : CDF!real
4 {
5 	real opCall(real x)
6 	{
7 		return normalDistribution(x);
8 	}
9 }
10 
11 auto cdf = new NormalCDF;
12 auto x = cdf(0.1);
13 assert(isNormal(x));

Meta