Pulsar::SortedMinimumSlope Class Reference

Uses the minimum slope of the sorted data to define the good "median". More...

#include <SortedMinimumSlope.h>

Inheritance diagram for Pulsar::SortedMinimumSlope:
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)
 Smooth the data given in raw, output to smoothed.
 
void set_duty_cycle (float t)
 Set the cut-off threshold (multiple of value at sorted minimum slope)
 
float get_duty_cycle () const
 
TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance. More...
 
SortedMinimumSlopeclone () 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 duty_cycle
 Fraction of data used to compute slope.
 
- 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 the minimum slope of the sorted data to define the good "median".

Member Function Documentation

◆ get_interface()

TextInterface::Parser * Pulsar::SortedMinimumSlope::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.


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

Generated using doxygen 1.8.17