Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2016-11-24

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
15:07 CandyAngel Super general question... can PDL::FFT help me determine if there is a 1Hz wave in 1000Hz sample data?
15:07 CandyAngel Just want to know if I am going in the right direction
16:57 chm joined #pdl
17:01 chm CandyAngel: Super general answer... yes.  E.g., if you have 4096 data samples at 1000Hz, then the FFT will tell you the frequencies present in the data.
17:08 chm CandyAngel: There are a lot of details.  Usually you'll want to make sure the data being transformed has an average value of zero
17:08 chm CandyAngel: $data -= $data->avg for example
17:10 chm CandyAngel: See Spectral analysis under Discrete Fourier Transform at wikipedia
17:11 chm CandyAngel: If the data is not periodic, you'll need to apply a windowing function
17:11 chm CandyAngel: Sorry I don't have time for more nor a better reference at the moment.  o/
17:46 CandyAngel chm: Just the "yes" is enough, means I won't waste time going down the wrong path!
17:46 CandyAngel Thankies

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary