Pulsar::SetThresholds Class Reference

Uses set cutoff values to mask bad channels and sub-integrations. More...

#include <SetThresholds.h>

Inheritance diagram for Pulsar::SetThresholds:
Pulsar::TimeFrequencyMask Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

unsigned update_mask (std::vector< float > &mask, std::vector< float > &stat, std::vector< float > &model, unsigned nsubint, unsigned nchan, unsigned npol)
 Update the mask.
void set_cutoff_max (float t)
 Set the cut-off threshold for the maximum value.
float get_cutoff_max () const
 Get the cut-off threshold for the maximum value.
void set_cutoff_min (float t)
 Set the cut-off threshold for the minimum value.
float get_cutoff_min () const
 Get the cut-off threshold for the minimum value.
TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance.
SetThresholdsclone () const
 Derived types must also define clone method.
Public Member Functions inherited from Pulsar::TimeFrequencyMask
virtual void set_threshold (float t)
virtual float get_threshold () const
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 cutoff_max
bool cutoff_max_set
float cutoff_min
bool cutoff_min_set
Protected Attributes inherited from Pulsar::TimeFrequencyMask
float threshold

Additional Inherited Members

Static Public Member Functions inherited from Pulsar::TimeFrequencyMask
static TimeFrequencyMaskfactory (const std::string &name)
 Create a new instance of TimeFrequencyMask based on name.
static const std::vector< TimeFrequencyMask * > & children ()
 Returns a list of available TimeFrequencyMask children.
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 Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

Uses set cutoff values to mask bad channels and sub-integrations.

Member Function Documentation

◆ clone()

SetThresholds * Pulsar::SetThresholds::clone ( ) const
inlinevirtual

Derived types must also define clone method.

Implements Pulsar::TimeFrequencyMask.

◆ get_interface()

TextInterface::Parser * Pulsar::SetThresholds::get_interface ( )
virtual

Return a text interface that can be used to configure this instance.

Get the text interface to the configuration attributes.

Reimplemented from Pulsar::TimeFrequencyMask.

◆ update_mask()

unsigned Pulsar::SetThresholds::update_mask ( std::vector< float > & mask,
std::vector< float > & stat,
std::vector< float > & model,
unsigned nsubint,
unsigned nchan,
unsigned npol )
virtual

Update the mask.

mask is the current weights array. stat is the relevant statistic vs time/freq model is a model for how the statistic "should" look (ie a smoothed bandpass shape or similar).

mask is nsubint-by-nchan, stat and model are nsubint-by-nchan-by-npol

return value is number of points masked

Implements Pulsar::TimeFrequencyMask.


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

Generated using doxygen 1.14.0