MoreProfiles.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/MoreProfiles.h
10
11#ifndef __Pulsar_MoreProfiles_h
12#define __Pulsar_MoreProfiles_h
13
14#include "Pulsar/DataExtension.h"
15
16namespace Pulsar
17{
20 {
21 public:
22
24 MoreProfiles (const char* name);
25
28
30 unsigned get_nbin () const;
31
33 void resize (unsigned nbin);
34
36 void set_weight (float wt);
37
39 void scale (double scale);
40
42 void offset (double offset);
43
45 void rotate_phase (double phase);
46
48 void zero ();
49
51 void bscrunch (unsigned nscrunch);
52
54 void bscrunch_to_nbin (unsigned nbin);
55
57 void fold (unsigned nfold);
58
60 void integrate (const Profile*);
61
63 virtual void average (const MoreProfiles*);
64
66 virtual void resize (unsigned nprofile, unsigned nbin);
67
69 virtual unsigned get_size () const;
70
72 virtual Profile* get_Profile (unsigned i);
73
75 virtual const Profile* get_Profile (unsigned i) const;
76
77 protected:
78
80 std::vector< Reference::To<Profile> > profile;
81
82 };
83
84}
85
86#endif
DataExtension(const char *name)
Construct with a name.
Definition DataExtension.h:24
virtual void average(const MoreProfiles *)
average information from another MoreProfiles
Definition MoreProfiles.C:135
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition MoreProfiles.C:112
void set_weight(float wt)
set the weight of the profile
Definition MoreProfiles.C:87
void bscrunch_to_nbin(unsigned nbin)
integrate neighbouring phase bins in profile
Definition MoreProfiles.C:117
void integrate(const Profile *)
integrate information from another Profile
Definition MoreProfiles.C:128
MoreProfiles(const char *name)
Construct with a name.
Definition MoreProfiles.C:12
void rotate_phase(double phase)
rotates the profile by phase (in turns)
Definition MoreProfiles.C:102
unsigned get_nbin() const
Return the number of phase bins.
Definition MoreProfiles.C:70
virtual Profile * get_Profile(unsigned i)
get the ith Profile
Definition MoreProfiles.C:57
virtual unsigned get_size() const
get the size of the profile vector
Definition MoreProfiles.C:44
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 MoreProfiles.C:122
void resize(unsigned nbin)
Resize the data area.
Definition MoreProfiles.C:82
std::vector< Reference::To< Profile > > profile
vector of Profile instances
Definition MoreProfiles.h:80
void offset(double offset)
offsets each bin of the profile by offset
Definition MoreProfiles.C:97
void zero()
set all amplitudes to zero
Definition MoreProfiles.C:107
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition Fourier.C:135

Generated using doxygen 1.14.0