https://medium.com/@monocosmo77/use-of-dirichlet-problem-in-machine-learning-research-part1-631826955c63