![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
One parameter slot of a gate_rv, either a literal or a wire.
More...
#include "RandomVariable.h"
Public Attributes | |
| double | literal |
Value when wire_slot < 0. | |
| int | wire_slot |
>= 0: resolve from the gate's wires[wire_slot]. | |
One parameter slot of a gate_rv, either a literal or a wire.
A latent-variable gate_rv (see the "Latent variables" surface) lets a distribution parameter be a scalar provenance token rather than a concrete double: the parameter is then a random variable itself, making the leaf a compound (hierarchical) distribution. In the on-disk extra text a wired slot is written "$i" (0-based index into the gate's wire vector); a literal slot keeps its decimal text as before. When wire_slot < 0 the slot is the literal literal; otherwise it is resolved from wires[wire_slot] at evaluation time.
Definition at line 57 of file RandomVariable.h.
| double provsql::DistributionParam::literal |
Value when wire_slot < 0.
Definition at line 58 of file RandomVariable.h.
| int provsql::DistributionParam::wire_slot |
>= 0: resolve from the gate's wires[wire_slot].
Definition at line 59 of file RandomVariable.h.