PhaseResolvedHistogram.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2016 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/PhaseResolvedHistogram.h
10 
11 #ifndef __Pulsar_PhaseResolvedHistogram_h
12 #define __Pulsar_PhaseResolvedHistogram_h
13 
14 #include "Pulsar/MoreProfiles.h"
15 
16 namespace Pulsar
17 {
19  class PhaseResolvedHistogram : public MoreProfiles
20  {
22  double min, max;
23 
24  public:
25 
27  PhaseResolvedHistogram (const char* name = "PhaseResolvedHistogram");
28 
30  PhaseResolvedHistogram* clone () const;
31 
33  void average (const MoreProfiles*);
34 
36  void set_range (double min, double max);
37 
39  virtual Profile* at (double value);
40 
41  };
42 
43 }
44 
45 #endif
PhaseResolvedHistogram(const char *name="PhaseResolvedHistogram")
Construct with a name.
Definition: PhaseResolvedHistogram.C:11
virtual void average(const MoreProfiles *)
average information from another MoreProfiles
Definition: MoreProfiles.C:135
PhaseResolvedHistogram * clone() const
Clone operator.
Definition: PhaseResolvedHistogram.C:17
void average(const MoreProfiles *)
average information from another MoreProfiles
Definition: PhaseResolvedHistogram.C:23
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
Definition: PhaseResolvedHistogram.h:24
virtual Profile * at(double value)
get the Profile that corresponds to the specified value
Definition: PhaseResolvedHistogram.C:39
Definition: MoreProfiles.h:24
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const Profile * get_Profile(const Archive *data, Index subint, Index pol, Index chan)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:24
void set_range(double min, double max)
Set the minimum and maximum values spanned by the histogram.
Definition: PhaseResolvedHistogram.C:32

Generated using doxygen 1.8.17