14#ifndef PROVSQL_COLLAPSED_AGG_MOMENT_H
15#define PROVSQL_COLLAPSED_AGG_MOMENT_H
gate_t
Strongly-typed gate identifier.
Semiring-agnostic in-memory provenance circuit.
std::optional< double > aggCollapsedRawMoment(const GenericCircuit &gc, gate_t agg, unsigned k)
Collapsed raw moment E[C^k] of a correlated COUNT / SUM agg, or std::nullopt when the circuit does no...
std::optional< double > collapsedConditionalMoment(const GenericCircuit &gc, gate_t target, gate_t event, unsigned k)
Collapsed exact posterior raw moment E[R^k | Y = C] for a latent target R conditioned (through the eq...