Pulsar::SNRWeight Class Reference

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

#include <SNRWeight.h>

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

Public Member Functions

 SNRWeight ()
 Default constructor.
void set_threshold (float f)
 Set weight to zero if S/N falls below threshold.
float get_threshold () const
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 void operator() (Archive *)
 Set the weights of all Profiles in the Archive.
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

float threshold
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.

Member Function Documentation

◆ get_weight()

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

Get the weight of the specified channel.

Implements Pulsar::IntegrationWeight.

References Pulsar::Integration::get_Profile(), and Pulsar::Profile::snr().


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

Generated using doxygen 1.14.0