Pulsar::RiseFall Class Referenceabstract

Estimates the on-pulse region between a rise and a fall. More...

#include <RiseFall.h>

Inheritance diagram for Pulsar::RiseFall:
Pulsar::OnPulseEstimator Pulsar::ProfileWeightFunction Pulsar::PhaseWeightFunction Pulsar::Algorithm Reference::Able Reference::HeapTracked Pulsar::LastHarmonic Pulsar::PeakConsecutive Pulsar::PeakCumulative

Public Member Functions

virtual std::pair< int, int > get_rise_fall (const Profile *)
 Return the rise and fall as a pair.
virtual void get_indeces (int &rise, int &fall) const =0
 Return the pulse phase bins in which the pulse rises and falls.
Public Member Functions inherited from Pulsar::OnPulseEstimator
virtual OnPulseEstimatorclone () const =0
 Return a copy constructed instance of self.
Public Member Functions inherited from Pulsar::ProfileWeightFunction
 ProfileWeightFunction ()
 Default constructor.
 ProfileWeightFunction (const ProfileWeightFunction &)
 Copy constructor.
virtual void set_Profile (const Profile *)
 Set the Profile from which the PhaseWeight will be derived.
void set_include (PhaseWeight *include)
 Include only the specified phase bins for consideration.
void set_exclude (PhaseWeight *include)
 Exclude the specified phase bins from consideration.
bool consider (unsigned ibin) const
 Return true if the specified phase bin should be considered.
virtual void get_weight (PhaseWeight *weight)
 Returns a PhaseWeight with the Profile attribute set.
virtual PhaseWeightoperate (const Profile *)
 Convenience interface.
Public Member Functions inherited from Pulsar::PhaseWeightFunction
virtual TextInterface::Parserget_interface ()=0
 Return a text interface that can be used to configure this instance.
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 Member Functions

void calculate (PhaseWeight *weight)
 Set the weights between rise and fall.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Additional Inherited Members

Static Public Member Functions inherited from Pulsar::ProfileWeightFunction
static ProfileWeightFunctionfactory (const std::string &name_and_parse)
 Construct a new ProfileWeightFunction from a string.
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 Attributes inherited from Pulsar::ProfileWeightFunction
Reference::To< const Profile, false > profile
 The Profile from which the PhaseWeight will be derived.
Reference::To< PhaseWeightinclude
 Included phase bins.
Reference::To< PhaseWeightexclude
 Excluded phase bins.

Detailed Description

Estimates the on-pulse region between a rise and a fall.

Member Function Documentation

◆ calculate()

void Pulsar::RiseFall::calculate ( PhaseWeight * weight)
protectedvirtual

Set the weights between rise and fall.

Retrieve the PhaseWeight.

Implements Pulsar::ProfileWeightFunction.

References get_indeces(), and Pulsar::ProfileWeightFunction::profile.

Referenced by Pulsar::PeakConsecutive::calculate().

◆ get_indeces()

virtual void Pulsar::RiseFall::get_indeces ( int & rise,
int & fall ) const
pure virtual

Return the pulse phase bins in which the pulse rises and falls.

Implemented in PeakConsecutive, Pulsar::LastHarmonic, Pulsar::PeakConsecutive, and Pulsar::PeakCumulative.

Referenced by calculate(), and get_rise_fall().


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

Generated using doxygen 1.14.0