[apps/proba] Comment about geometric_distribution definition

This commit is contained in:
Léa Saviot
2019-08-20 09:50:18 +02:00
parent 6bc317df32
commit be3b414cbc

View File

@@ -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) {}