InfoLabel.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Plotting/Pulsar/InfoLabel.h
10 
11 #ifndef __Pulsar_InfoLabel_h
12 #define __Pulsar_InfoLabel_h
13 
14 #include "Pulsar/PlotLabel.h"
15 
16 namespace Pulsar {
17 
18  class FluxPlot;
19 
21 
23  class InfoLabel : public PlotLabel {
24 
25  public:
26 
29 
31  ~InfoLabel ();
32 
34  virtual void plot (const Archive*);
35 
36  protected:
37 
38  // The FluxPlot instance for which this is plotting a label
40 
41  };
42 
43 }
44 
45 #endif
double mean(float phase, float duty_cycle=default_duty_cycle) const
Convenience interface to stats, returns only the mean.
Definition: Profile_stats.C:121
const Integration * get_Integration(const Archive *data, Index subint)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:118
InfoLabel(FluxPlot *flux)
Default constructor.
Definition: InfoLabel.C:19
float find_min_phase(float duty_cycle=default_duty_cycle) const
Returns the phase of the centre of the region with minimum mean.
Definition: Profile_find_minmax_phase.C:21
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
Plots flux profiles.
Definition: FluxPlot.h:30
virtual void plot(const Archive *)
Plot the label.
Definition: InfoLabel.C:34
void set_label_above(PlotLabel *)
Set the above-frame label.
Definition: PlotAttributes.C:44
virtual PlotFrame * get_frame()
Get the frame.
Definition: FramedPlot.C:27
std::string get_filename() const
Get the name of the file to which the archive will be unloaded.
Definition: Archive.h:108
void stats(double *mean, double *variance=0, double *varmean=0, int bin_start=0, int bin_end=0) const
Calculates the mean, variance, and variance of the mean.
Definition: Profile_stats.C:27
Defines the PSRCHIVE library.
Definition: CalSource.h:17
~InfoLabel()
Destructor.
Definition: InfoLabel.C:27

Generated using doxygen 1.8.17