Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Types | Public Member Functions | List of all members
ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc > Class Template Reference

A single dimension representation of a Spectrum. More...

#include <cheetah/data/Spectrum.h>

Inheritance diagram for ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc >:
Inheritance graph
Collaboration diagram for ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc >:
Collaboration graph

Public Types

typedef BaseT::Channel Channel
 
typedef BaseT::ConstChannel ConstChannel
 
typedef cheetah::utils::ModifiedJulianClock::time_point TimePointType
 
- Public Types inherited from ska::cheetah::data::SpectrumInterface< pss::astrotypes::multiarray::MultiArray< Alloc, NumericalRep, SpectrumInterface, data::Frequency > >
typedef pss::astrotypes::multiarray::MultiArray< Alloc, NumericalRep, SpectrumInterface, data::Frequency > ::template OperatorSliceType< data::Frequency >::type Channel
 
typedef pss::astrotypes::multiarray::MultiArray< Alloc, NumericalRep, SpectrumInterface, data::Frequency > ::template ConstOperatorSliceType< data::Frequency >::type ConstChannel
 

Public Member Functions

 SpectrumBase (pss::astrotypes::DimensionSize< data::Frequency > size=pss::astrotypes::DimensionSize< data::Frequency >(0))
 
TimePointType const & start_time () const
 
void start_time (TimePointType offset)
 
- Public Member Functions inherited from ska::cheetah::data::SpectrumInterface< pss::astrotypes::multiarray::MultiArray< Alloc, NumericalRep, SpectrumInterface, data::Frequency > >
Channel channel (std::size_t channel_number)
 
ConstChannel channel (std::size_t channel_number) const
 
std::size_t number_of_channels () const
 return the number of channels in the data structure
 

Detailed Description

template<typename DerivedType, typename NumericalRep, typename Alloc = std::allocator<NumericalRep>>
class ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc >

A single dimension representation of a Spectrum.

Definition at line 58 of file Spectrum.h.

Member Function Documentation

◆ start_time() [1/2]

template<typename DerivedType , typename NumericalRep , typename Alloc >
SpectrumBase< DerivedType, NumericalRep, Alloc >::TimePointType const & ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc >::start_time ( ) const
Returns
the absolute time the first time sample corresponds to.

Definition at line 49 of file Spectrum.cpp.

50 {
51  return _start_time;
52 }

◆ start_time() [2/2]

template<typename DerivedType , typename NumericalRep , typename Alloc >
void ska::cheetah::data::SpectrumBase< DerivedType, NumericalRep, Alloc >::start_time ( TimePointType  offset)
Returns
the absolute time the Nth time sample corresponds to.

Definition at line 43 of file Spectrum.cpp.

44 {
45  _start_time = start_time;
46 }
TimePointType const & start_time() const
Definition: Spectrum.cpp:49

The documentation for this class was generated from the following files: