PhaseWeightStatistic.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2020 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/PhaseWeightStatistic.h
10
11#ifndef __PhaseWeightStatistic_h
12#define __PhaseWeightStatistic_h
13
14#include "UnaryStatistic.h"
15
16namespace Pulsar {
17
18 class PhaseWeight;
19
21 class PhaseWeightStatistic : public Identifiable::Decorator
22 {
23 public:
24
26 static PhaseWeightStatistic* factory (const std::string& name);
27
28 typedef std::vector< Reference::To<Pulsar::PhaseWeightStatistic> > registry_type;
29
31 static const registry_type& children ();
32
35
37 virtual double get (const PhaseWeight*);
38
40 virtual PhaseWeightStatistic* clone () const;
41
42 private:
43
45
47 static void build ();
48 };
49
50}
51
52#endif
53
virtual double get(const PhaseWeight *)
Derived types define the value returned.
Definition PhaseWeightStatistic.C:28
static PhaseWeightStatistic * factory(const std::string &name)
Create a new instance of PhaseWeightStatistic based on name.
Definition PhaseWeightStatistic.C:82
PhaseWeightStatistic(UnaryStatistic *)
Construct from a UnaryStatistic.
Definition PhaseWeightStatistic.C:21
static const registry_type & children()
Returns a list of available PhaseWeightStatistic children.
Definition PhaseWeightStatistic.C:71
virtual PhaseWeightStatistic * clone() const
Derived types must also define clone method.
Definition PhaseWeightStatistic.C:40
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0