Demodulation method for TimeSeries objects
Created by: alurban
This is my first pass at implementing a demodulation method for TimeSeries
objects. The proposed method takes in a frequency and stride, and returns a new TimeSeries
object with dt=stride
which represents the original signal's average magnitude and phase at the given frequency as a complex number.
Also included in this pull request is a unit test which creates a pure sinusoid and then checks that demod
correctly measures the amplitude and phase within acceptable precision. (Note, the error in this calculation decreases for arbitrary amplitude and phase as the stride increases.)