JenetAnderson98Plot.h
1//-*-C++-*-
2
3// psrchive/Util/genutil/JenetAnderson98Plot.h
4
5#ifndef __JenetAnderson98_Plot_h
6#define __JenetAnderson98_Plot_h
7
8#include "JenetAnderson98.h"
9
12
13public:
14
16 Plot ();
17
19 std::string get_xlabel () const;
20
22 std::string get_ylabel () const;
23
26
29
32
34 void set_interface (const Probability* data);
35
37 float get_xmin() const;
38 float get_xmax() const;
39 float get_ymin() const;
40 float get_ymax() const;
41
43 void plot ();
44
45protected:
46
49
51 std::vector<float> theory_dist;
52
54 float show_min;
55
56 void calculate_theory ();
57
58private:
59
60 void adjust_limits (const std::vector<float>& hist);
61 void init_limits ();
62
63 float ymax;
64 unsigned imin;
65 unsigned imax;
66
67};
68
69
70
71#endif
Plots the distribution of Phi.
Definition JenetAnderson98Plot.h:11
void set_interface(const Probability *data)
Set the interface to the data.
Definition JenetAnderson98Plot.C:78
Plot()
Default constructor.
Definition JenetAnderson98Plot.C:11
bool show_cutoff_sigma
Plot vertical bars to indicate the cut-off thresholds.
Definition JenetAnderson98Plot.h:25
bool plot_entire_range
Plot the entire range of the distribution.
Definition JenetAnderson98Plot.h:28
float get_xmin() const
Get the limits of the data to be plotted.
Definition JenetAnderson98Plot.C:107
std::string get_ylabel() const
The label on the y-axis.
Definition JenetAnderson98Plot.C:25
std::vector< float > theory_dist
Theoretical probability distribution.
Definition JenetAnderson98Plot.h:51
JenetAnderson98 theory
Calculates the various quantitites of interest.
Definition JenetAnderson98Plot.h:48
std::string get_xlabel() const
The label on the x-axis.
Definition JenetAnderson98Plot.C:20
void plot()
Plot the measured and theoretical distributions.
Definition JenetAnderson98Plot.C:144
bool plot_only_cut
Plot only the range between the cutoff.
Definition JenetAnderson98Plot.h:31
float show_min
Minimum value to be plotted.
Definition JenetAnderson98Plot.h:54

Generated using doxygen 1.14.0