1#ifndef INFORMATION_THEORY_H
2#define INFORMATION_THEORY_H
32 std::optional<gate_t> event);
gate_t
Strongly-typed gate identifier.
Semiring-agnostic in-memory provenance circuit.
double computeKL(const GenericCircuit &gc, gate_t p_root, gate_t q_root)
Kullback-Leibler divergence KL(P || Q) in nats.
double computeEntropy(const GenericCircuit &gc, gate_t root, std::optional< gate_t > event)
Entropy of root in nats: Shannon for a discrete view, differential for a continuous one.
double computeMutualInformation(const GenericCircuit &gc, gate_t x_root, gate_t y_root)
Mutual information I(X; Y) in nats: exactly 0 for structurally independent roots, H(X) / Infinity for...