Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Types | Public Member Functions | List of all members
ska::cheetah::generators::PulsarProfile Class Reference

A simple intensity profile representing a pulse shape. More...

#include <cheetah/generators/pulse_profile/PulsarProfile.h>

Collaboration diagram for ska::cheetah::generators::PulsarProfile:
Collaboration graph

Public Types

typedef double ProfileDataPoint
 
typedef ProfileContainer::iterator Iterator
 
typedef ProfileContainer::const_iterator ConstIterator
 

Public Member Functions

 PulsarProfile (std::initializer_list< double >)
 
Iterator begin ()
 the start of the profile spectrum
 
ConstIterator cbegin () const
 
Iterator end ()
 the end of the profile spectrum
 
ConstIterator cend () const
 
void add (double)
 add a value to the profile More...
 
double sum () const
 return the sum of all frequencies
 
std::size_t size () const
 return the number of data points in the profile
 

Detailed Description

A simple intensity profile representing a pulse shape.

Described as points in equally spaced phase

Definition at line 43 of file PulsarProfile.h.

Member Function Documentation

◆ add()

void ska::cheetah::generators::PulsarProfile::add ( double  value)

add a value to the profile

value will be inserted at the next frequency range

Definition at line 66 of file PulsarProfile.cpp.

67 {
68  //FrequencyType f = (_profile.size()?(_profile.back().first + _delta):_start);
69  //_profile.emplace_back(std::make_pair(std::move(f), value));
70  _profile.emplace_back(value);
71 }
Here is the call graph for this function:

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