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 
16 namespace Pulsar
17 {
19  class MoreProfiles : public DataExtension
20  {
21  public:
22 
24  MoreProfiles (const char* name);
25 
27  MoreProfiles (const MoreProfiles&);
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
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: Profile.C:549
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition: Fourier.C:135
void resize(unsigned nbin)
Resize the data area.
Definition: MoreProfiles.C:82
void offset(double offset)
offsets each bin of the profile by offset
Definition: Profile.C:301
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void scale(double scale)
multiplies each bin of the profile by scale
Definition: Profile.C:311
void integrate(const Profile *)
integrate information from another Profile
Definition: MoreProfiles.C:128
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition: MoreProfiles.C:112
void rotate_phase(double phase)
rotates the profile by phase (in turns)
Definition: Profile_rotate.C:35
Definition: MoreProfiles.h:24
Definition: DataExtension.h:24
void zero()
set all amplitudes to zero
Definition: MoreProfiles.C:107
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 fold(unsigned nfold)
integrate neighbouring sections of the profile
Definition: Profile.C:472
void bscrunch(unsigned nscrunch)
integrate neighbouring phase bins in profile
Definition: Profile.C:505
void zero()
set all amplitudes to zero
Definition: Profile.C:365
void offset(double offset)
offsets each bin of the profile by offset
Definition: MoreProfiles.C:97
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
unsigned get_nbin() const
Return the number of phase bins.
Definition: MoreProfiles.C:70
virtual void set_weight(float)
set the weight of the profile
Definition: Profile.C:185
void set_weight(float wt)
set the weight of the profile
Definition: MoreProfiles.C:87
virtual void resize(unsigned nbin)
resize the data area
Definition: Profile.C:134
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
std::vector< Reference::To< Profile > > profile
vector of Profile instances
Definition: MoreProfiles.h:90
void rotate_phase(double phase)
rotates the profile by phase (in turns)
Definition: MoreProfiles.C:102

Generated using doxygen 1.8.17