Computes the bernoulli complementary cumulative distribution function (CCDF).
value to evaluate CCDF
true probability
import mir.math.common: approxEqual; assert(true.bernoulliCCDF(0.5) == 0); assert(false.bernoulliCCDF(0.5) == 0.5); assert(true.bernoulliCCDF(0.7) == 0); assert(false.bernoulliCCDF(0.7).approxEqual(0.7));
Bernoulli Distribution
See Implementation
Computes the bernoulli complementary cumulative distribution function (CCDF).