List of all members | Public Types | Static Public Member Functions
utl::TimeDistributionAlgorithm Class Reference

Utility class for returning properties of a TimeDistribution. More...

#include "sevt/TimeDistributionAlgorithm.h"

Public Types

typedef boost::tuple< double,
double > 
TupleD
 

Static Public Member Functions

template<typename T >
static double Centroid (const TimeDistribution< T > &td, const int bin1, const int bin2)
 Evaluate the centroid in slot number between bin1 and bin2. More...
 
template<typename T >
static double Mean (const TimeDistribution< T > &td, const int bin1, const int bin2)
 Evaluate mean of TimeDistribution between bin1 and bin2. More...
 
template<typename T >
static TupleD MeanRMS (const TimeDistribution< T > &td, const int bin1, const int bin2)
 Evalueate both mean and RMS of TimeDistribution between bin1 and bin2. More...
 
template<typename T >
static double RMS (const TimeDistribution< T > &td, const int bin1, const int bin2)
 Evalueate RMS of TimeDistribution between bin1 and bin2. More...
 
template<typename T >
static double Sum (const TimeDistribution< T > &td, const int bin1, const int bin2)
 Evaluate the sum of bin1 through bin2. More...
 

Detailed Description

Utility class for returning properties of a TimeDistribution.

Author
Tom Paul
Date
21 June 2004

Definition at line 28 of file TimeDistributionAlgorithm.h.

Member Typedef Documentation

typedef boost::tuple<double, double> utl::TimeDistributionAlgorithm::TupleD

Definition at line 31 of file TimeDistributionAlgorithm.h.

Member Function Documentation

template<typename T >
template double TimeDistributionAlgorithm::Centroid ( const TimeDistribution< T > &  td,
const int  bin1,
const int  bin2 
)
static

Evaluate the centroid in slot number between bin1 and bin2.

Computes the centroid in number of slots. In other words, this method does not multiply by the slot size. To compute centroid in time, you need to use the GetBinning() method to get size of a slot.

Definition at line 105 of file TimeDistributionAlgorithm.cc.

References utl::TimeDistribution< T >::At(), utl::TimeDistribution< T >::fData, utl::TimeDistribution< T >::GetStart(), utl::TimeDistribution< T >::GetStop(), and max.

template<typename T >
template double TimeDistributionAlgorithm::Mean ( const TimeDistribution< T > &  td,
const int  bin1,
const int  bin2 
)
static

Evaluate mean of TimeDistribution between bin1 and bin2.

Definition at line 43 of file TimeDistributionAlgorithm.cc.

References utl::abs().

template<typename T >
template TimeDistributionAlgorithm::TupleD TimeDistributionAlgorithm::MeanRMS ( const TimeDistribution< T > &  td,
const int  bin1,
const int  bin2 
)
static
template<typename T >
template double TimeDistributionAlgorithm::RMS ( const TimeDistribution< T > &  td,
const int  bin1,
const int  bin2 
)
static
template<typename T >
template double TimeDistributionAlgorithm::Sum ( const TimeDistribution< T > &  td,
const int  bin1,
const int  bin2 
)
static

The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.