Computes dynamic spectrum (flux vs time/freq) of an Archive. More...

#include <DynamicSpectrum.h>

Inheritance diagram for Pulsar::DynamicSpectrum:
Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

 DynamicSpectrum ()
 Default constructor.
 
 ~DynamicSpectrum ()
 Destructor.
 
void set_Archive (const Archive *_arch)
 Set the Archive to use.
 
void set_flux_method (Flux *flux)
 Set the flux computation method.
 
Reference::To< Fluxget_flux_method ()
 Provide access to the flux method.
 
void compute ()
 Compute dynamic spectrum.
 
void reset ()
 Reset memory allocation.
 
Estimate< double > get_ds (unsigned ichan, unsigned isub)
 Get value w/ uncertainty.
 
const double * get_ds ()
 Get pointer to values.
 
const double * get_ds_err ()
 Get pointer to uncertainties.
 
const unsigned get_nchan () const
 Get number of channels in ds.
 
const unsigned get_nsub () const
 Get number of subints in ds.
 
const MJD get_rel_epoch (unsigned isub)
 Get time of subint relative to start of file.
 
const double get_freq (unsigned ichan, unsigned isub=0)
 Get freq of a given channel.
 
void unload (const std::string &filename, const std::string &command="")
 Unload the results to a file.
 
- 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
 

Static Public Member Functions

static DynamicSpectrumload (const std::string &filename)
 Load results from a file.
 
- 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

Reference::To< const Archivearch
 The input archive.
 
Reference::To< Fluxflux
 The flux method.
 
bool computed
 Has DS been computed.
 
unsigned nchan
 Num chans in use.
 
unsigned nsub
 Num subints in use.
 
double * ds_data
 Dynamic spectrum array (nchan by nsubint)
 
double * ds_data_err
 Dynamic spectrum uncertainty array.
 
double ds_max
 The max DS value.
 
double ds_min
 The min DS value.
 

Additional Inherited Members

- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Computes dynamic spectrum (flux vs time/freq) of an Archive.


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

Generated using doxygen 1.8.17