Added some general methods for the regularization of signals, to be
tested