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
16namespace Pulsar
17{
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
FourthMoments(const char *name="FourthMoments")
Construct with a name.
Definition FourthMoments.C:11
void average(const MoreProfiles *)
average information from another MoreProfiles
Definition FourthMoments.C:65
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition FourthMoments.C:35
void fold(unsigned nfold)
integrate neighbouring sections of the profile
Definition FourthMoments.C:53
void offset(double offset)
offsets each bin of the profile by offset
Definition FourthMoments.C:29
void pscrunch()
self destruct on pscrunch
Definition FourthMoments.C:59
void scale(double scale)
multiplies each bin of the profile by scale
Definition FourthMoments.C:22
FourthMoments * clone() const
Clone operator.
Definition FourthMoments.C:16
void bscrunch_to_nbin(unsigned nbin)
integrate neighbouring phase bins in profile
Definition FourthMoments.C:42
MoreProfiles(const char *name)
Construct with a name.
Definition MoreProfiles.C:12
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0