Made a clas for constant amplitude models with gradient descent running on the log of the signal to ensure positivity.