Shifts PhaseWeight elements. More...

#include <PhaseWeightShift.h>

Inheritance diagram for Pulsar::PhaseWeightShift:
Pulsar::PhaseWeightModifier Pulsar::PhaseWeightFunction Pulsar::Algorithm Reference::Able Reference::HeapTracked

Public Member Functions

 PhaseWeightShift ()
 Default constructor.
PhaseWeightShiftclone () const
 Return a new copy of self.
Public Member Functions inherited from Pulsar::PhaseWeightModifier
virtual void set_weight (const PhaseWeight *)
 Set the PhaseWeight from which the PhaseWeight will be derived.
virtual void get_weight (PhaseWeight *weight)
 Returns a PhaseWeight.
void operator() (PhaseWeight *)
 Inplace operator.
TextInterface::Parserget_interface ()
 Return a text interface that can be used to configure this instance.
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

Public Attributes

Functor< double() > get_shift
 Returns the shift.

Protected Member Functions

void calculate (PhaseWeight *)
 Derived classes implement the PhaseWeight calculation.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

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 Attributes inherited from Pulsar::PhaseWeightModifier
Reference::To< const PhaseWeightinput_weight
 The PhaseWeight from which the PhaseWeight will be derived.

Detailed Description

Shifts PhaseWeight elements.

Member Function Documentation

◆ calculate()

void Pulsar::PhaseWeightShift::calculate ( PhaseWeight * result)
protectedvirtual

Derived classes implement the PhaseWeight calculation.

Shift the input PhaseWeight array into the result.

Implements Pulsar::PhaseWeightModifier.

References Pulsar::PhaseWeight::get_nbin(), get_shift, Pulsar::PhaseWeight::get_weights(), Pulsar::PhaseWeightModifier::input_weight, and Pulsar::phase().

◆ clone()

Pulsar::PhaseWeightShift * Pulsar::PhaseWeightShift::clone ( ) const
virtual

Return a new copy of self.

Implements Pulsar::PhaseWeightFunction.

References PhaseWeightShift().


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

Generated using doxygen 1.14.0