Implement the function that generates synthetic signals refactoring the code
analysis the performance of our algorithm on synthetic signals