TimeDistributionAlgorithm.h
Go to the documentation of this file.
1 #ifndef _utl_TimeDistributionAlgorithm_h_
2 #define _utl_TimeDistributionAlgorithm_h_
3 
12 #include <utl/TimeDistribution-fwd.h>
13 #include <utl/AugerException.h>
14 #include <boost/tuple/tuple.hpp>
15 
16 
17 namespace utl {
18 
29 
30  public:
31  typedef boost::tuple<double, double> TupleD;
32 
34  template<typename T>
35  static double Sum(const TimeDistribution<T>& td, const int bin1, const int bin2);
36 
38  template<typename T>
39  static double Mean(const TimeDistribution<T>& td, const int bin1, const int bin2);
40 
42  template<typename T>
43  static double RMS(const TimeDistribution<T>& td, const int bin1, const int bin2);
44 
46  template<typename T>
47  static TupleD MeanRMS(const TimeDistribution<T>& td, const int bin1, const int bin2);
48 
50 
54  template<typename T>
55  static double Centroid(const TimeDistribution<T>& td, const int bin1, const int bin2);
56 
57  };
58 
59 }
60 
61 
62 #endif
63 
64 // Configure (x)emacs for this file ...
65 // Local Variables:
66 // mode: c++
67 // compile-command: "make -C .. -k"
68 // End:
static double RMS(const TimeDistribution< T > &td, const int bin1, const int bin2)
Evalueate RMS of TimeDistribution between bin1 and bin2.
boost::tuple< double, double > TupleD
Histogram class for time distributions with suppressed empty bins.
static TupleD MeanRMS(const TimeDistribution< T > &td, const int bin1, const int bin2)
Evalueate both mean and RMS of TimeDistribution between bin1 and bin2.
Utility class for returning properties of a TimeDistribution.
static double Centroid(const TimeDistribution< T > &td, const int bin1, const int bin2)
Evaluate the centroid in slot number between bin1 and bin2.
static double Sum(const TimeDistribution< T > &td, const int bin1, const int bin2)
Evaluate the sum of bin1 through bin2.
static double Mean(const TimeDistribution< T > &td, const int bin1, const int bin2)
Evaluate mean of TimeDistribution between bin1 and bin2.

, generated on Tue Sep 26 2023.