Learning Discrete Bayesian Networks from Continuous Data