SmoothMedian.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2007 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/SmoothMedian.h
10 
11 #ifndef __Pulsar_SmoothMedian_h
12 #define __Pulsar_SmoothMedian_h
13 
14 #include "Pulsar/Smooth.h"
15 
16 namespace Pulsar {
17 
19 
24  class SmoothMedian : public Smooth {
25 
26  public:
27 
29  SmoothMedian* clone () const;
30 
33 
35  class Interface;
36 
37  void transform (Profile*);
38 
39  };
40 
41 }
42 
43 #endif
SmoothMedian * clone() const
Return a copy constructed instance of self.
Definition: SmoothMedian.C:66
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
TextInterface::Parser * get_interface()
Return a text-based interface to class properties.
Definition: SmoothMedian.C:82
void set_amps(const T *data)
set the amplitudes array equal to the contents of the data array
Definition: ProfileAmps.h:89
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
const T & get_median() const
void transform(Profile *)
Defined by derived classes.
Definition: SmoothMedian.C:20
Profile smoothing algorithms.
Definition: Smooth.h:28
void insert(const T &element)
void erase(const T &element)
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Smooths a Profile using the median over a boxcar.
Definition: SmoothMedian.h:29

Generated using doxygen 1.8.17