24 #include "cheetah/data/TimeFrequency.h" 25 #include "panda/Copy.h" 26 #include <type_traits> 32 template <
class Arch,
typename NumericalT>
34 : BaseT(
pss::astrotypes::DimensionSize<Frequency>(0)
35 ,
pss::astrotypes::DimensionSize<Time>(0))
38 template <
class Arch,
typename NumericalT>
40 : BaseT( number_of_channels, number_of_spectra)
44 template <
class Arch,
typename NumericalT>
46 : BaseT(number_of_channels, number_of_spectra)
50 template<
class Arch,
typename NumericalT>
51 template<
class OtherArch,
typename OtherNumericalT>
53 : BaseT( pss::astrotypes::DimensionSize<Frequency>(ft.number_of_channels()), pss::astrotypes::DimensionSize<Time>(ft.number_of_spectra()))
56 panda::copy(ft.begin(), ft.end(), this->begin());
59 template <
class Arch,
typename NumericalT>
60 template<
typename OtherNumericalT>
67 template <
class Arch,
typename NumericalT>
68 template<
typename OtherArch,
typename OtherNumericalT>
74 panda::copy(ft_copy.begin(), ft_copy.end(), this->begin());
77 template<
class Arch,
typename NumericalT>
80 Channel channel = this->channel(channel_number);
81 std::fill(channel.begin(), channel.end(), data);
84 template<
class Arch,
typename NumericalT>
87 return static_cast<BaseT const&
>(*this) ==
static_cast<BaseT const&
>(o);
109 template <
class Arch,
typename NumericalT>
113 inline static type& exctract(type& t) {
return t; }
bool operator==(FrequencyTime const &) const
return true if equivalent data
NumericalT DataType
the underlying data storage type for the amplitude of the signal
Some limits and constants for FLDO.
std::size_t number_of_channels() const
std::size_t number_of_spectra() const
void set_channel(unsigned channel_number, DataType const &value)
sets the value of the specified channel to the provided value across all time samples ...