Fit rotating vector model to Stokes Q and U profiles. More...

#include <ComplexRVMFit.h>

Inheritance diagram for Pulsar::ComplexRVMFit:
Reference::Able Reference::HeapTracked

Public Member Functions

 ComplexRVMFit ()
 Default constructor.
double get_gate_duty_cycle () const
 Get the fraction of the pulse period modelled (in turns)
virtual void set_gate_duty_cycle (double turns)
 Set the fraction of the pulse period modelled (in turns)
void add_opm (const range &radians)
 Add a range of pulse phase containing an orthogonally polarized mode.
bool is_opm (double phase_in_radians) const
 Return true if pulse phase falls within an OPM range.
void add_include (const range &radians)
 Add a range of pulse phase to be included as constraints.
bool is_included (double phase_in_radians) const
 Return true if pulse phase falls within an included range.
void add_exclude (const range &radians)
 Add a range of pulse phase to be excluded from constraints.
bool is_excluded (double phase_in_radians) const
 Return true if pulse phase falls within an excluded range.
void set_observation (const PolnProfile *)
 Set the data to which model will be fit.
const PolnProfileget_observation () const
 Get the data to which model will be fit.
void set_threshold (float sigma)
 Set the threshold below which data are ignored.
float get_threshold () const
 Get the threshold below which data are ignored.
void set_guess_smooth (unsigned phase_bins)
 Set the smoothing window used to stabilize first guess.
unsigned get_guess_smooth () const
 Get the smoothing window used to stabilize first guess.
MEAL::ComplexRVMget_model ()
 Get the model to be fit to the data.
void solve ()
 Fit data to the model.
void set_chisq_map (bool flag)
void set_range_alpha (const range &r)
void set_range_zeta (const range &r)
void set_range_beta (const range &r)
void search_2D (unsigned nalpha, unsigned nzeta)
void search_1D (unsigned nzeta)
double evaluate (double phi_radians)
 Evaluate the model at the specified pulse longitude (in radians)
float get_chisq () const
unsigned get_nfree () const
void get_residuals (std::vector< double > &phases, std::vector< std::complex< Estimate< double > > > &res)
void get_psi_residuals (std::vector< double > &phases, std::vector< Estimate< double > > &res)
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 Attributes

static bool verbose = false
 Verbosity flag.

Protected Member Functions

void check_parameters ()
void init (MEAL::RotatingVectorModel *)
void init (MEAL::OrthoRVM *)
void check_parameters (MEAL::RotatingVectorModel *)
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

double gate
Reference::To< const PolnProfiledata
Reference::To< MEAL::ComplexRVMmodel
float threshold
std::vector< range > range_include
std::vector< range > range_exclude
MEAL::Axis< unsigned > state
std::vector< MEAL::Axis< unsigned >::Value > data_x
std::vector< std::complex< Estimate< double > > > data_y
std::vector< range > opm
range range_alpha
range range_beta
range range_zeta
float guess_alpha
float guess_beta
unsigned guess_smooth

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

Detailed Description

Fit rotating vector model to Stokes Q and U profiles.

Member Function Documentation

◆ add_exclude()

void Pulsar::ComplexRVMFit::add_exclude ( const range & radians)

Add a range of pulse phase to be excluded from constraints.

Must be called before set_observation

◆ add_include()

void Pulsar::ComplexRVMFit::add_include ( const range & radians)

Add a range of pulse phase to be included as constraints.

Must be called before set_observation

◆ add_opm()

void Pulsar::ComplexRVMFit::add_opm ( const range & radians)

Add a range of pulse phase containing an orthogonally polarized mode.

Must be called before set_observation


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

Generated using doxygen 1.14.0