ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
provsql::DistributionSpec Struct Reference

Parsed distribution spec (family + up to two parameters). More...

#include "RandomVariable.h"

Collaboration diagram for provsql::DistributionSpec:

Public Attributes

const DistributionFamilyfamily
double p1
 First parameter (μ, a, k, or λ).
double p2
 Second parameter (σ, b, or λ; unused for 1-parameter families).

Detailed Description

Parsed distribution spec (family + up to two parameters).

Stored in the extra byte string of a gate_rv as "normal:μ,σ", "uniform:a,b", "exponential:λ", "erlang:k,λ", "gamma:k,λ", ... family points at the interned registry descriptor of the parsed name token (one instance per family, so plain pointer comparison is family identity); there is deliberately no family enum – adding a family registers a new descriptor without touching any shared header.

Definition at line 38 of file RandomVariable.h.

Member Data Documentation

◆ family

const DistributionFamily* provsql::DistributionSpec::family

Definition at line 39 of file RandomVariable.h.

◆ p1

double provsql::DistributionSpec::p1

First parameter (μ, a, k, or λ).

Definition at line 40 of file RandomVariable.h.

◆ p2

double provsql::DistributionSpec::p2

Second parameter (σ, b, or λ; unused for 1-parameter families).

Definition at line 41 of file RandomVariable.h.


The documentation for this struct was generated from the following file: