Pulsar::IterativeBaseline Class Referenceabstract

Finds a Profile baseline using an interative bounding method. More...

#include <IterativeBaseline.h>

Inheritance diagram for Pulsar::IterativeBaseline:
Pulsar::BaselineEstimator Pulsar::ProfileWeightFunction Pulsar::PhaseWeightFunction Pulsar::Algorithm Reference::Able Reference::HeapTracked Pulsar::ExponentialBaseline Pulsar::GaussianBaseline Pulsar::IQRBaseline

Public Member Functions

 IterativeBaseline ()
 Default constructor.
 ~IterativeBaseline ()
 Destructor.
void set_initial_baseline (BaselineEstimator *)
 Set the BaselineEstimator used to find the initial baseline.
BaselineEstimatorget_initial_baseline () const
virtual void set_threshold (float sigma)
 Set the threshold below which samples are included in the baseline.
float get_threshold () const
void set_max_iterations (unsigned iterations)
 Set the maximum number of iterations.
void set_run_postprocessing (bool f)
bool get_run_postprocessing () const
Public Member Functions inherited from Pulsar::BaselineEstimator
 BaselineEstimator ()
 Default constructor.
PhaseWeightbaseline (const Profile *)
 Returns a new PhaseWeight instance.
PhaseWeightoperator() (const Profile *)
 Returns a new PhaseWeight instance.
PhaseWeightoperate (const Profile *)
 Convenience interface.
void set_median_cut (float threshold)
 Cut samples from baseline with median difference over threshold.
virtual BaselineEstimatorclone () 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.
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)
 Calculate the PhaseWeight.
virtual void get_bounds (PhaseWeight *, float &lower, float &upper)=0
 Derived classes must define the bounds.
virtual void postprocess (PhaseWeight *weight, const Profile *profile)
bool get_initial_bounds () const
 Provide access to derived classes.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

float threshold
 The threshold below which samples are included in the baseline.
unsigned max_iterations
 The maximum number of iterations.
bool run_postprocessing
 Run the postprocessing algorithm.
Reference::To< BaselineEstimatorinitial_baseline
 The BaselineEstimator used to find the initial baseline.
Protected Attributes inherited from Pulsar::BaselineEstimator
float median_cut
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.

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 ()

Detailed Description

Finds a Profile baseline using an interative bounding method.

Member Function Documentation

◆ calculate()

◆ get_bounds()

virtual void Pulsar::IterativeBaseline::get_bounds ( PhaseWeight * ,
float & lower,
float & upper )
protectedpure virtual

Derived classes must define the bounds.

Implemented in Pulsar::ExponentialBaseline, Pulsar::GaussianBaseline, and Pulsar::IQRBaseline.

References Pulsar::ProfileWeightFunction::profile.

Referenced by calculate().

◆ set_threshold()

void Pulsar::IterativeBaseline::set_threshold ( float sigma)
virtual

Set the threshold below which samples are included in the baseline.

Reimplemented in Pulsar::ExponentialBaseline, and Pulsar::GaussianBaseline.

References threshold.

Referenced by Pulsar::IQRBaseline::IQRBaseline(), Pulsar::ExponentialBaseline::set_threshold(), and Pulsar::GaussianBaseline::set_threshold().


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

Generated using doxygen 1.14.0