true probability
import mir.test: shouldApprox; geometricCDF(-1.0, 0.5).shouldApprox == 0; // UFCS chaining deduces this as size_t instead of a floating point type 0.geometricCDF(0.5).shouldApprox == 0.5; 1.geometricCDF(0.5).shouldApprox == 0.75; 2.geometricCDF(0.5).shouldApprox == 0.875; geometricCDF(-1.0, 0.25).shouldApprox == 0; // UFCS chaining deduces this as size_t instead of a floating point type 0.geometricCDF(0.25).shouldApprox == 0.25; 1.geometricCDF(0.25).shouldApprox == 0.4375; 2.geometricCDF(0.25).shouldApprox == 0.578125; 2.5.geometricCDF(0.25).shouldApprox == 0.578125;
Computes the geometric cumulative density function (CDF).