https://medium.com/@monocosmo77/working-with-total-variation-concept-part10-machine-learning-2024-351add16f3b8