https://medium.com/@monocosmo77/working-with-total-variation-concept-part9-machine-learning-2024-304c0d71320d