ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
poisson.cpp File Reference

Poisson(λ) family implementation (discrete). More...

#include "DistributionCommon.h"
#include <cmath>
#include <memory>
#include <optional>
#include <random>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for poisson.cpp:

Go to the source code of this file.

Namespaces

namespace  provsql

Detailed Description

Poisson(λ) family implementation (discrete).

A discrete, integer-valued family in the otherwise-continuous Distribution hierarchy. It is only ever instantiated for a latent (token-parameterised) leaf – provsql.poisson(random_variable) – because the literal-parameter constructor enumerates an exact categorical instead. A parametric leaf is declined by parse_distribution_spec, so no continuous-analytic path ever integrates this family's pdf as a density: it is reached only by the Monte Carlo sample(), by observe (whose weight is pdf = the pmf at the datum), and by the affine-mean fast path (mean = λ, meanIsAffine() = true).

Self-contained: the class is file-local and reaches the evaluators only through the DistributionRegistry registrar at the bottom.

Definition in file poisson.cpp.