24 #ifndef SKA_CHEETAH_RFIM_AMPP_SPECTRUM_H 25 #define SKA_CHEETAH_RFIM_AMPP_SPECTRUM_H 28 #include "cheetah/data/Spectrum.h" 29 #include "pss/astrotypes/multiarray/MultiArray.h" 41 template<
typename NumericalRep,
typename Alloc=std::allocator<NumericalRep>>
47 typedef typename BaseT::Channel Channel;
48 typedef typename BaseT::ConstChannel ConstChannel;
51 Spectrum(pss::astrotypes::DimensionSize<data::Frequency> size = pss::astrotypes::DimensionSize<data::Frequency>(0));
63 float calculate_mean();
77 namespace astrotypes {
79 template<
typename T,
typename Alloc>
80 struct has_exact_dimensions<
ska::cheetah::rfim::ampp::Spectrum<T, Alloc>, units::Frequency> :
public std::true_type
87 #include "detail/Spectrum.cpp" 89 #endif // SKA_CHEETAH_RFIM_AMPP_SPECTRUM_H
A single dimension representation of a Spectrum.
Some limits and constants for FLDO.
A single dimension representation of the bandPass.
void adjust_mean(NumericalRep)
adjust each channel by the provided amount
float mean() const
return the calculated mean