Sometimes we'd like to be able to use the functionality of Inform given an known probability distribution rather than one inferred from time series data. To that end, we need a function to construct a distribution which reproduces the original probabilities up to some tolerance.
This has already been done in PyInform by @jakehanson.
Proposed API
EXPORT inform_dist *inform_dist_estimated(double *probs, size_t n, double tol);
Sometimes we'd like to be able to use the functionality of Inform given an known probability distribution rather than one inferred from time series data. To that end, we need a function to construct a distribution which reproduces the original probabilities up to some tolerance.
This has already been done in PyInform by @jakehanson.
Proposed API
Example Usage