Pulsar::FixedFrequencyPredictor Class Reference

Functions that predict pulse phase. More...

#include <FixedFrequencyPredictor.h>

Inheritance diagram for Pulsar::FixedFrequencyPredictor:
Pulsar::Predictor Reference::Able Reference::HeapTracked

Public Member Functions

 FixedFrequencyPredictor ()
 Set frequency later.
 
 FixedFrequencyPredictor (long double Hz)
 Construct from fixed frequency.
 
void set_topocentric_frequency (long double Hz)
 Set the frequency at which data are folded (Hz)
 
long double get_topocentric_frequency () const
 Get the topocentric frequency at which data are folded (Hz)
 
void set_epoch (const MJD &t)
 Set the epoch.
 
const MJDget_epoch () const
 Get the epoch.
 
virtual void set_observing_frequency (long double MHz)
 Set the observing frequency at which phase and time are related.
 
virtual long double get_observing_frequency () const
 Get the observing frequency at which phase and epoch are related.
 
virtual Phase phase (const MJD &t) const
 Return the phase, given the epoch.
 
virtual MJD iphase (const Phase &phase, const MJD *guess=0) const
 Return the epoch, given the phase and, optionally, a first guess.
 
virtual long double frequency (const MJD &t) const
 Return the spin frequency, given the epoch.
 
virtual Phase dispersion (const MJD &t, long double MHz) const
 Return the phase correction for dispersion delay.
 
virtual Predictorclone () const
 Return a new, copy constructed instance of self.
 
virtual Generatorgenerator () const
 Return a new Generator set up to produce a new Predictor like self.
 
virtual void insert (const Predictor *)
 Add the information from the supplied predictor to self. More...
 
virtual void keep (const std::vector< MJD > &)
 Keep only the components required to span the given epochs.
 
virtual bool matches (const Predictor *) const
 Return true if the Predictor configuration matches this.
 
virtual void load (FILE *)
 Load from an open stream.
 
virtual void unload (FILE *) const
 Unload to an open stream.
 
- Public Member Functions inherited from Pulsar::Predictor
virtual void load_file (const std::string &filename)
 Load from the specified file.
 
virtual void unload_file (const std::string &filename) const
 Unload to the specified file.
 
- Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 
 Able (const Able &)
 Copy constructor.
 
Ableoperator= (const Able &)
 Assignment operator.
 
virtual ~Able ()
 Destructor.
 
unsigned get_reference_count () const
 Returns the number of references there are to this.
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 
 HeapTracked (const HeapTracked &)
 Copy constructor.
 
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
 
virtual ~HeapTracked ()
 Destructor.
 
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.
 

Protected Attributes

long double m_freq
 The fixed topocentric frequency.
 
long double m_obs_freq
 The observing frequency – irrelevant.
 
MJD m_epoch
 epoch (basically used for reference phase)
 

Additional Inherited Members

- Public Types inherited from Pulsar::Predictor
enum  Policy { Input, Default, Ephemeris }
 Policy for creating new predictors. More...
 
- Static Public Member Functions inherited from Pulsar::Predictor
static Configuration::Parameter< Policy > & get_policy ()
 Policy for creating new predictors.
 
static void children (std::vector< Reference::To< Predictor > > &)
 Factory helper creates a vector of pointers to derived class instances.
 
- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
 
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
 
static void operator delete (void *location)
 Regular delete overload.
 
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.
 
- Static Public Attributes inherited from Pulsar::Predictor
static bool verbose = false
 Verbosity flag.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object. More...
 
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object. More...
 

Detailed Description

Functions that predict pulse phase.

This simple version assumes folding at a fixed topocentric frequency, as e.g. a pulsed cal.

Member Function Documentation

◆ insert()

virtual void Pulsar::FixedFrequencyPredictor::insert ( const Predictor )
inlinevirtual

Add the information from the supplied predictor to self.

This method should check to avoid inconsistency and duplication

Implements Pulsar::Predictor.


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

Generated using doxygen 1.8.17