![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Geometric(p) family implementation (discrete). More...
#include "DistributionCommon.h"#include <cmath>#include <memory>#include <optional>#include <random>#include <string>#include <utility>
Go to the source code of this file.
Namespaces | |
| namespace | provsql |
Geometric(p) family implementation (discrete).
Number of trials until the first success, support {1, 2, 3, ...}, pmf(k) = (1-p)^{k-1} p – the same convention as the literal provsql.geometric constructor (which enumerates a categorical). Only ever instantiated for a latent leaf provsql.geometric(random_variable); reached by sample(), by observe (weight = pmf at the datum), and the moment readouts. Self-contained: registered at the bottom.
Definition in file geometric.cpp.