Pulsar::StandardSNRWeight Class Reference

Sets the weight of each Profile according to its S/N squared. More...

#include <StandardSNRWeight.h>

Inheritance diagram for Pulsar::StandardSNRWeight:
Pulsar::IntegrationWeight Pulsar::Weight Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

 StandardSNRWeight (const std::string &filename)
 Construct from standard profile filename.
void operator() (Archive *)
 Set the weights of all Profiles in the Archive.
double get_weight (const Integration *integration, unsigned ichan)
 Get the weight of the specified channel.
Public Member Functions inherited from Pulsar::IntegrationWeight
 IntegrationWeight ()
 Default constructor.
void weight (Integration *)
 Set integration weights.
void set_weight_absolute (bool f)
 Set weight equal to value or scale weight by value.
bool get_weight_absolute () const
Public Member Functions inherited from Pulsar::Weight
 Weight ()
 Default constructor.
virtual TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance.
void set_fscrunch (const ScrunchFactor &f)
 Set the frequency scrunch factor.
const ScrunchFactor get_fscrunch () const
 Get the frequency scrunch factor.
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 Attributes

Reference::To< ProfileShiftFittotal
std::vector< Reference::To< ProfileShiftFit > > chan
Protected Attributes inherited from Pulsar::IntegrationWeight
bool weight_absolute
Protected Attributes inherited from Pulsar::Weight
ScrunchFactor fscrunch_factor
 Compute weights from fscrunched clone of data, then apply to original.

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 ()
Protected Member Functions inherited from Pulsar::Weight
void copy_weights (const Integration *from, Integration *to)
 Copy the weights from 'from' to 'to'.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

Sets the weight of each Profile according to its S/N squared.

Constructor & Destructor Documentation

◆ StandardSNRWeight()

Pulsar::StandardSNRWeight::StandardSNRWeight ( const std::string & filename)

Construct from standard profile filename.

Default constructor.

References Pulsar::Archive::load(), and Pulsar::IntegrationManager::verbose.

Member Function Documentation

◆ get_weight()

double Pulsar::StandardSNRWeight::get_weight ( const Integration * integration,
unsigned ichan )
virtual

◆ operator()()

void Pulsar::StandardSNRWeight::operator() ( Archive * archive)
virtual

Set the weights of all Profiles in the Archive.

Reimplemented from Pulsar::Weight.

References Pulsar::Weight::operator()().


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

Generated using doxygen 1.14.0