Pulsar::MoreProfiles Class Reference

#include <MoreProfiles.h>

Inheritance diagram for Pulsar::MoreProfiles:
Pulsar::DataExtension Pulsar::Profile::Extension Reference::Able Reference::HeapTracked Pulsar::FourthMoments Pulsar::PhaseResolvedHistogram

Public Member Functions

 MoreProfiles (const char *name)
 Construct with a name.
 
 MoreProfiles (const MoreProfiles &)
 Copy constructor.
 
unsigned get_nbin () const
 Return the number of phase bins.
 
void resize (unsigned nbin)
 Resize the data area.
 
void set_weight (float wt)
 set the weight of the profile
 
void scale (double scale)
 multiplies each bin of the profile by scale
 
void offset (double offset)
 offsets each bin of the profile by offset
 
void rotate_phase (double phase)
 rotates the profile by phase (in turns)
 
void zero ()
 set all amplitudes to zero
 
void bscrunch (unsigned nscrunch)
 integrate neighbouring phase bins in profile
 
void bscrunch_to_nbin (unsigned nbin)
 integrate neighbouring phase bins in profile
 
void fold (unsigned nfold)
 integrate neighbouring sections of the profile
 
void integrate (const Profile *)
 integrate information from another Profile
 
virtual void average (const MoreProfiles *)
 average information from another MoreProfiles More...
 
virtual void resize (unsigned nprofile, unsigned nbin)
 resize the profile vector
 
virtual unsigned get_size () const
 get the size of the profile vector
 
virtual Profileget_Profile (unsigned i)
 get the ith Profile More...
 
virtual const Profileget_Profile (unsigned i) const
 get the ith const Profile More...
 
- Public Member Functions inherited from Pulsar::DataExtension
 DataExtension (const char *name)
 Construct with a name.
 
virtual void pscrunch ()
 some extensions may have to respond to pscrunching
 
- Public Member Functions inherited from Pulsar::Profile::Extension
 Extension (const char *name)
 Construct with a name.
 
virtual ~Extension ()
 Destructor.
 
virtual Extensionclone () const =0
 Return a new copy-constructed instance identical to this instance.
 
virtual TextInterface::Parserget_interface ()
 Return a text interface that can be used to access this instance.
 
std::string get_extension_name () const
 Return the name of the Extension.
 
virtual std::string get_short_name () const
 Return an abbreviated name that can be typed relatively quickly.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Protected Attributes

std::vector< Reference::To< Profile > > profile
 vector of Profile instances
 
- Protected Attributes inherited from Pulsar::Profile::Extension
std::string extension_name
 Extension name - useful when debugging.
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Extra pulse profiles to represent other dimensions

Member Function Documentation

◆ average()

void Pulsar::MoreProfiles::average ( const MoreProfiles that)
virtual

average information from another MoreProfiles

integrate data from another MoreProfiles

Reimplemented in Pulsar::FourthMoments, and Pulsar::PhaseResolvedHistogram.

References profile.

Referenced by Pulsar::PhaseResolvedHistogram::average(), Pulsar::FourthMoments::average(), and integrate().

◆ get_Profile() [1/2]

Pulsar::Profile * Pulsar::MoreProfiles::get_Profile ( unsigned  i)
virtual

get the ith Profile

get the ith profile

Referenced by Pulsar::RemoveBaseline::Each::transform().

◆ get_Profile() [2/2]

const Pulsar::Profile * Pulsar::MoreProfiles::get_Profile ( unsigned  i) const
virtual

get the ith const Profile

get the ith profile


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

Generated using doxygen 1.8.17