24#ifndef PROVSQL_CONJUGATE_POSTERIOR_H
25#define PROVSQL_CONJUGATE_POSTERIOR_H
52std::optional<DistributionSpec>
gate_t
Strongly-typed gate identifier.
Semiring-agnostic in-memory provenance circuit.
Continuous random-variable helpers (distribution parsing, moments).
std::optional< double > conjugateLogEvidence(const GenericCircuit &gc, gate_t evidence)
The exact log marginal likelihood of a conjugate-shaped evidence circuit; std::nullopt on any shape ...
std::optional< DistributionSpec > conjugatePosterior(const GenericCircuit &gc, gate_t target, gate_t evidence)
The exact posterior of target given evidence, as a resolved distribution spec, when the circuit match...