From be3b414cbc2b45c4c9d67d201edd5010d4f6e0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 20 Aug 2019 09:50:18 +0200 Subject: [PATCH] [apps/proba] Comment about geometric_distribution definition --- apps/probability/law/geometric_law.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) {}