Version 2.0 with logarithmic calculations
If you use this library, please cite the paper: https://link.springer.com/article/10.1007/s00500-021-05642-3
Di Gennaro, G., Buonanno, A. & Palmieri, F.A.N. Optimized realization of Bayesian networks in reduced normal form using latent variable model. Soft Comput 25, 7029–7040 (2021). https://doi.org/10.1007/s00500-021-05642-3