diff --git a/apps/probability/law/geometric_law.h b/apps/probability/law/geometric_law.h index 7778e3933..f074ba40c 100644 --- a/apps/probability/law/geometric_law.h +++ b/apps/probability/law/geometric_law.h @@ -5,6 +5,12 @@ namespace Probability { +/* We chose the definition: + * 0 < p <= 1 for success probability + * k failures where k ∈ {0, 1, 2, ... } + * The law follows the probability distribution of the number of failures before + * the first success. */ + class GeometricLaw final : public OneParameterLaw { public: GeometricLaw() : OneParameterLaw(0.5f) {}