24 #ifndef SKA_CHEETAH_GENERATORS_PULSARPROFILE_H 25 #define SKA_CHEETAH_GENERATORS_PULSARPROFILE_H 32 namespace generators {
46 typedef double ProfileDataPoint;
49 typedef std::vector<ProfileDataPoint> ProfileContainer;
52 typedef typename ProfileContainer::iterator Iterator;
53 typedef typename ProfileContainer::const_iterator ConstIterator;
64 ConstIterator cbegin()
const;
70 ConstIterator cend()
const;
86 std::size_t
size()
const;
89 ProfileContainer _profile;
98 #endif // SKA_CHEETAH_GENERATORS_PULSARPROFILE_H 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