24 #ifndef PSS_ASTROTYPES_TYPES_TIMEFREQUENCY_H
25 #define PSS_ASTROTYPES_TYPES_TIMEFREQUENCY_H
33 namespace astrotypes {
35 template<
typename SliceType>
39 typedef typename SliceType::template OperatorSliceType<units::Frequency>::type
Channel;
40 typedef typename SliceType::template ConstOperatorSliceType<units::Frequency>::type
ConstChannel;
41 typedef typename SliceType::template OperatorSliceType<units::Time>::type
Spectra;
42 typedef typename SliceType::template ConstOperatorSliceType<units::Time>::type
ConstSpectra;
44 using SliceType::SliceType;
69 Channel
channel(std::size_t channel_number);
70 ConstChannel
channel(std::size_t channel_number)
const;
91 Spectra
spectrum(std::size_t offset);
92 ConstSpectra
spectrum(std::size_t offset)
const;
112 template<
typename T,
typename Alloc=std::allocator<T>>
133 template<
typename FrequencyTimeType,
typename Enable=
typename std::enable_if<
150 template<
typename T,
typename Alloc=std::allocator<T>>
171 template<
typename TimeFrequencyType,
typename Enable=
typename std::enable_if<
178 template<
typename Alloc,
typename T>
183 template<
typename Alloc,
typename T>
188 template<
typename Alloc,
typename T>
193 template<
typename Alloc,
typename T>
198 template<
typename Alloc,
typename T>
203 template<
typename Alloc,
typename T>
212 #endif // PSS_ASTROTYPES_TYPES_TIMEFREQUENCY_H
boost::units::time_dimension Time
BaseT::ConstChannel ConstChannel
SliceType::template ConstOperatorSliceType< units::Frequency >::type ConstChannel
std::size_t number_of_channels() const
return the number of channels in the data structure
BaseT::ConstChannel ConstChannel
BaseT::ConstSpectra ConstSpectra
return true if the Dimensions provided match exactly those of the structure T (including order) ...
BaseT::ConstSpectra ConstSpectra
std::size_t number_of_spectra() const
return the number of spectra in the data structure
A template class representing values associated with a time and frequecny such as Stokes values or vo...
A template class representing values associated with a time and frequecny such as Stokes values or vo...
SliceType::template ConstOperatorSliceType< units::Time >::type ConstSpectra
Channel channel(std::size_t channel_number)
retrun a single channel across all time samples
SliceType::template OperatorSliceType< units::Frequency >::type Channel
return true if the Dimension is represented in the structure
SliceType::template OperatorSliceType< units::Time >::type Spectra
Spectra spectrum(std::size_t offset)
return a single spectrum from the specified offset
boost::units::frequency_dimension Frequency