MultiData.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2010 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Plotting/Pulsar/MultiData.h
10 
11 #ifndef __Pulsar_MultiData_h
12 #define __Pulsar_MultiData_h
13 
14 #include "Pulsar/Plot.h"
15 
16 namespace Pulsar {
17 
19  class MultiData : public Plot
20  {
21 
22  public:
23 
25  static Plot* factory (Plot*);
26 
28  void preprocess (Archive*);
29 
31  PlotAttributes* get_attributes ();
32 
35 
38 
40  void configure (const std::string& option);
41 
43  void set_preprocessor (Processor*);
44 
46  Processor* get_preprocessor ();
47 
49  bool has_preprocessor () const;
50 
52  Plot* get_Plot () { return managed_plot; }
53 
54  protected:
55 
58 
60  std::vector< std::string > options;
61  };
62 
63 }
64 
65 #endif
Jones< double > evaluate(std::vector< Jones< double > > *grad=0) const
void fit(const Pulsar::Parameters *model, std::vector< toa > &data, Pulsar::Parameters *postfit=NULL, bool track=false, Tempo::toa::State min_state=Tempo::toa::Normal)
Estimate< double > get_relative_conditional_error() const
Get the relative conditional arrival time error.
Definition: PolnProfileFitAnalysis.C:644
virtual void plot(const Archive *)=0
Plot in the current viewport.
static Plot * factory(Plot *)
Factory returns appropriate derived class.
Definition: MultiData.C:13
Plots multiple viewports.
Definition: MultiPlot.h:27
Estimate< double > get_relative_error() const
Get the relative arrival time error.
Definition: PolnProfileFitAnalysis.C:624
Plot * get_Plot()
Get the managed plot.
Definition: MultiData.h:62
Plots a single plot.
Definition: SimplePlot.h:38
void set_preprocessor(Processor *)
Set the pre-processor.
Definition: MultiData.C:69
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: MultiData.C:50
static bool verbose
Verbosity flag.
Definition: PolnProfileFitAnalysis.h:40
Analysis of the matrix template matching algorithm.
Definition: PolnProfileFitAnalysis.h:30
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
static Archive * load(const std::string &name)
Factory returns a new instance loaded from filename.
Definition: Archive_load.C:28
static void set_verbosity(unsigned level)
Set the verbosity level (0 to 3)
Definition: Archive_verbose.C:19
Reference::To< Plot > managed_plot
The plot that is managed by this instance.
Definition: MultiData.h:67
Combines multiple data sets in a single plot.
Definition: MultiDataPlot.h:27
const ScalarMath sqrt(const ScalarMath &x)
void preprocess(Archive *)
Process the Archive as needed before calling plot.
Definition: MultiData.C:38
Stores the properties of the plot frame.
Definition: PlotAttributes.h:25
PlotAttributes * get_attributes()
Provide access to the plot attributes.
Definition: MultiData.C:44
Estimate< double > get_multiple_correlation() const
Get the multiple correlation between phase shift and Jones parameters.
Definition: PolnProfileFitAnalysis.C:636
TextInterface::Parser * get_frame_interface()
Get the text interface to the frame attributes.
Definition: MultiData.C:56
static bool verbose
Vector< 3, double > dotvarphi() const
Three-vector of partial derivatives of varphi with respect to b_k.
Definition: BoostShiftAnalysis.C:103
static bool verbose
Verbosity flag.
Definition: Plot.h:33
Analysis of the scalar template matching algorithm.
Definition: PolnProfileFitAnalysis.h:185
void set_fit(const PolnProfileFit *)
Set the PolnProfileFit algorithm to be analysed.
Definition: PolnProfileFitAnalysis.C:715
T get_value() const
Estimate< double > get_error() const
Get the estimated phase shift error for the fluctuation spectrum.
Definition: PolnProfileFitAnalysis.C:817
bool verbose
Definition: timer++.C:25
void set_fit(PolnProfileFit *)
Set the PolnProfileFit algorithm to be analysed.
Definition: PolnProfileFitAnalysis.C:256
void configure(const std::string &option)
Process a configuration command and store it for later use.
Definition: MultiData.C:62
void set_spectrum(const Profile *, double rescale_variance=1.0)
Set the fluctuation spectrum of the Profile to be analyzed.
Definition: PolnProfileFitAnalysis.C:723
Interface to any object that processes data in an Archive.
Definition: Processor.h:27
Processor * get_preprocessor()
Get the pre-processor.
Definition: MultiData.C:75
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void set_profile(const PolnProfile *)
Set the maximum harmonic used when optimizing.
Definition: BoostShiftAnalysis.C:20
bool has_preprocessor() const
Return true if pre-processor has been set.
Definition: MultiData.C:81
double delvarphi_delbeta() const
Partial derivative of varphi with respect to beta.
Definition: BoostShiftAnalysis.C:111
The matrix template matching algorithm.
Definition: PolnProfileFit.h:50
Analysis of the impact of instrumental boost on phase shift estimate.
Definition: BoostShiftAnalysis.h:24
Plot()
Default constructor.
Definition: Plot.C:14
Base class of all plotters.
Definition: Plot.h:28
std::vector< std::string > options
The options passed to configure.
Definition: MultiData.h:70

Generated using doxygen 1.8.17