FourthMoments.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/FourthMoments.h
10 
11 #ifndef __Pulsar_FourthMoments_h
12 #define __Pulsar_FourthMoments_h
13 
14 #include "Pulsar/MoreProfiles.h"
15 
16 namespace Pulsar
17 {
19  class FourthMoments : public MoreProfiles
20  {
22  double nsample;
23 
24  public:
25 
27  FourthMoments (const char* name = "FourthMoments");
28 
30  FourthMoments* clone () const;
31 
32  void set_nsample (double _nsamp) { nsample = _nsamp; }
33  double get_nsample () const { return nsample; }
34 
36  void scale (double scale);
37 
39  void offset (double offset);
40 
42  void bscrunch (unsigned nscrunch);
43 
45  void bscrunch_to_nbin (unsigned nbin);
46 
48  void fold (unsigned nfold);
49 
51  void average (const MoreProfiles*);
52 
54  void pscrunch ();
55 
56  };
57 
58 }
59 
60 #endif
virtual void average(const MoreProfiles *)
average information from another MoreProfiles
Definition: MoreProfiles.C:135
void bscrunch_to_nbin(unsigned nbin)
integrate neighbouring phase bins in profile
Definition: FourthMoments.C:42
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition: FourthMoments.C:35
void offset(double offset)
offsets each bin of the profile by offset
Definition: FourthMoments.C:29
FourthMoments(const char *name="FourthMoments")
Construct with a name.
Definition: FourthMoments.C:11
void scale(double scale)
multiplies each bin of the profile by scale
Definition: FourthMoments.C:22
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition: MoreProfiles.C:112
FourthMoments * clone() const
Clone operator.
Definition: FourthMoments.C:16
void pscrunch()
self destruct on pscrunch
Definition: FourthMoments.C:59
Definition: MoreProfiles.h:24
void bscrunch_to_nbin(unsigned nbin)
integrate neighbouring phase bins in profile
Definition: MoreProfiles.C:117
MoreProfiles(const char *name)
Construct with a name.
Definition: MoreProfiles.C:12
void average(const MoreProfiles *)
average information from another MoreProfiles
Definition: FourthMoments.C:65
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void fold(unsigned nfold)
integrate neighbouring sections of the profile
Definition: MoreProfiles.C:122
void scale(double scale)
multiplies each bin of the profile by scale
Definition: MoreProfiles.C:92
void fold(unsigned nfold)
integrate neighbouring sections of the profile
Definition: FourthMoments.C:53
Definition: FourthMoments.h:24

Generated using doxygen 1.8.17