Given an event list or light curve, we want to be able to compute the Fourier transform and obtain the spectra. Specifically, we want the AveragedPowerspectrum.
Much of this code already exists in the Stringray.jl implementation, but need to be cleaned up / rewritten for the new primitives we are working with.
We minimally need something like the from_events constructor to construct an averaged power spectrum from the EventList. This constructor does not need all of the Python functionality, e.g. GTI treatment, as that will be handled separately for now.
We want something like:
struct AveragedPowerspectrum{T}
freqs::Vector{T}
power::Vector{T}
power_errors::Vector{T}
end
I don't think any of the other attributes are relevant for now!
Given an event list or light curve, we want to be able to compute the Fourier transform and obtain the spectra. Specifically, we want the
AveragedPowerspectrum.Much of this code already exists in the Stringray.jl implementation, but need to be cleaned up / rewritten for the new primitives we are working with.
We minimally need something like the
from_eventsconstructor to construct an averaged power spectrum from theEventList. This constructor does not need all of the Python functionality, e.g. GTI treatment, as that will be handled separately for now.We want something like:
I don't think any of the other attributes are relevant for now!