24 #ifndef SKA_CHEETAH_DATA_FREQUENCYSERIES_H 25 #define SKA_CHEETAH_DATA_FREQUENCYSERIES_H 27 #include "cheetah/data/Series.h" 28 #include "cheetah/data/Units.h" 29 #include "cheetah/data/DefaultAllocator.h" 30 #include "cheetah/utils/Architectures.h" 32 #include "panda/DataChunk.h" 53 template <typename Arch, typename ValueType, typename Alloc=typename DefaultAllocator<Arch,ValueType>::type>
55 :
public Series<Arch, ValueType, Alloc>
56 ,
public panda::DataChunk<FrequencySeries<Arch, ValueType, Alloc>>
61 typedef Alloc Allocator;
62 typedef Arch Architecture;
78 template<
typename OtherArch,
typename OtherAlloc>
86 FrequencySeries(FourierFrequencyType
const& df, std::size_t size, Allocator
const& allocator = Allocator());
93 FrequencySeries(FourierFrequencyType
const& df, Allocator
const& allocator = Allocator());
111 data::FourierFrequencyType
const bin_to_frequency(std::size_t idx)
const;
112 data::TimeType
const bin_to_period(std::size_t idx)
const;
113 std::size_t frequency_to_bin(data::FourierFrequencyType
const& frequency)
const;
116 FourierFrequencyType _frequency_step;
124 #include "cheetah/data/detail/FrequencySeries.cpp" 126 #endif // SKA_CHEETAH_DATA_FREQUENCYSERIES_H FourierFrequencyType const & frequency_step() const
Retrieve the frequency step of the series.
A container of Fourier series data.
Some limits and constants for FLDO.
Base class for generic data series.
FrequencySeries(Allocator const &allocator=Allocator())
Construct a default frequency series (of size 0)
std::size_t size() const
the size of the series