24 #include "../PulsarProfile.h" 31 namespace generators {
33 PulsarProfile::PulsarProfile(std::initializer_list<double> list)
38 PulsarProfile::PulsarProfile()
42 PulsarProfile::~PulsarProfile()
48 return _profile.begin();
51 PulsarProfile::ConstIterator PulsarProfile::cbegin()
const 53 return _profile.cbegin();
58 return _profile.end();
61 PulsarProfile::ConstIterator PulsarProfile::cend()
const 63 return _profile.cend();
70 _profile.emplace_back(value);
81 return std::accumulate(cbegin(), cend(), 0.0);
87 return _profile.size();
std::size_t size() const
return the number of data points in the profile
Iterator begin()
the start of the profile spectrum
A simple intensity profile representing a pulse shape.
Some limits and constants for FLDO.
Iterator end()
the end of the profile spectrum
void add(double)
add a value to the profile
double sum() const
return the sum of all frequencies