CorrelationInfo.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2025 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/Correlation.h
10
11#ifndef __Pulsar_CorrelationInfo_H
12#define __Pulsar_CorrelationInfo_H
13
14#include "Pulsar/PolnCalibrator.h"
15
16namespace Pulsar {
17
20 {
21
22 public:
23
25 CorrelationInfo (unsigned index, const PolnCalibrator* calibrator);
26
28 std::string get_title () const override;
29
31 unsigned get_nchan () const override;
32
34 unsigned get_nclass () const override;
35
37 std::string get_label (unsigned iclass) const override;
38
40 unsigned get_nparam (unsigned iclass) const override;
41
43 std::string get_param_name (unsigned iparam) const override;
44
46 Estimate<float> get_param (unsigned ichan,
47 unsigned iclass,
48 unsigned iparam) const override;
49
50 protected:
51
54
56 unsigned index = 0;
57
59 std::vector<std::string> names;
60 };
61
62}
63
64#endif
Definition Calibrator.h:151
unsigned get_nclass() const override
Return the number of parameter classes.
Definition CorrelationInfo.C:60
std::string get_title() const override
Return the title.
Definition CorrelationInfo.C:44
unsigned get_nchan() const override
Return the number of frequency channels.
Definition CorrelationInfo.C:52
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const override
Return the estimate of the specified parameter.
Definition CorrelationInfo.C:139
std::string get_param_name(unsigned iparam) const override
Return the PGPLOT-encoded name of the specified parameter.
Definition CorrelationInfo.C:68
Reference::To< const PolnCalibrator > poln_calibrator
The PolnCalibrator with correlation information to be plotted.
Definition CorrelationInfo.h:53
unsigned get_nparam(unsigned iclass) const override
Return the number of parameters in the specified class.
Definition CorrelationInfo.C:102
std::string get_label(unsigned iclass) const override
Return the PGPLOT-encoded label of the specified class.
Definition CorrelationInfo.C:74
std::vector< std::string > names
Parameter names.
Definition CorrelationInfo.h:59
unsigned index
Index of the parameter for which correlation information will be plotted.
Definition CorrelationInfo.h:56
CorrelationInfo(unsigned index, const PolnCalibrator *calibrator)
Constructor.
Definition CorrelationInfo.C:16
Polarimetric calibrators.
Definition PolnCalibrator.h:37
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0