DSP.jl icon indicating copy to clipboard operation
DSP.jl copied to clipboard

L1 discrete fourier transform with Lasso.jl

Open arturgower opened this issue 8 years ago • 3 comments

I've written some code to do a L1 discrete fourier transform (DFT) using Lasso.jl . It's basic, but I've tested it plenty and it works. Any interest in me adding it to this package?

Have a look at the example below of recovering one time spike by using standard DFT and DFT with an L1 regularisation of the time signal.

l1_dft

arturgower avatar Jun 19 '17 17:06 arturgower

That's really cool! I'm not sure we want to add a dependency on Lasso for this package though. What are your thoughts, @simonster?

ararslan avatar Jun 19 '17 17:06 ararslan

That is indeed a cool feature! Maybe a conditional inclusion through Requires.jl?

baggepinnen avatar Aug 03 '17 08:08 baggepinnen

Requires is not a good solution to conditional dependencies. Since this package is used by a number of others packages, we shouldn't propagate a Requires dependency.

ararslan avatar Aug 03 '17 19:08 ararslan