PhaseWeightInterface.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/PhaseWeightInterface.h
10 
11 #ifndef __Pulsar_PhaseWeightTI_h
12 #define __Pulsar_PhaseWeightTI_h
13 
14 #include "Pulsar/PhaseWeight.h"
15 #include "TextInterface.h"
16 
17 namespace Pulsar {
18 
20  class PhaseWeight::Interface : public TextInterface::To<PhaseWeight>
21  {
22  public:
23 
26 
27  };
28 
29 }
30 
31 
32 #endif
void stats(const Profile *profile, double *mean, double *variance=0, double *varmean=0, double *varvar=0) const
Get the statistics of the weighted phase bins (deprecated interface)
Definition: PhaseWeight.C:420
Interface(PhaseWeight *=0)
Default constructor.
Definition: PhaseWeightInterface.C:12
void add(T(P::*get)() const, const char *name, const char *description=0)
std::string get_end_index() const
Get the end of the phase region with non-zero weight.
Definition: PhaseWeight.C:176
std::string get_start_index() const
Get the beginning of the phase region with non-zero weight.
Definition: PhaseWeight.C:153
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
unsigned get_nonzero_weight_count() const
Get the count of all non-zero weights.
Definition: PhaseWeight.C:142
virtual void set_instance(C *c)
static const registry_type & children()
Returns a list of available PhaseWeightStatistic children.
Definition: PhaseWeightStatistic.C:71
Defines the PSRCHIVE library.
Definition: CalSource.h:17
virtual double get(const PhaseWeight *)
Derived types define the value returned.
Definition: PhaseWeightStatistic.C:28
Reference::To< C, false > instance

Generated using doxygen 1.8.17