https://medium.com/@monocosmo77/working-with-heaviside-function-part1-machine-learning-2024-3d63ad5dd0c6