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

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].

Detailed Description

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.

Member Data Documentation

◆ literal

double provsql::DistributionParam::literal

Value when wire_slot < 0.

Definition at line 58 of file RandomVariable.h.

◆ wire_slot

int provsql::DistributionParam::wire_slot

>= 0: resolve from the gate's wires[wire_slot].

Definition at line 59 of file RandomVariable.h.


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