PeakEdgesInterpreter.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2007 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/PeakEdgesInterpreter.h
10
11#ifndef __Pulsar_PeakEdgesInterpreter_h
12#define __Pulsar_PeakEdgesInterpreter_h
13
14#include "CommandParser.h"
15#include "Functor.h"
16
17namespace Pulsar {
18
19 class PhaseWeight;
20 class Profile;
21
22 class PeakEdgesInterpreter : public CommandParser {
23
24 public:
25
27 PeakEdgesInterpreter ();
28
30 std::string cumulative (const std::string& args);
31
33 std::string consecutive (const std::string& args);
34
36 std::string empty ();
37
38 protected:
39
40 Functor< std::pair<int,int> (const Profile*) > cumulative_functor;
41 Functor< std::pair<int,int> (const Profile*) > consecutive_functor;
42
43 };
44
45}
46
47#endif
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0