39 #ifndef TF_COMPLETENESSBINS_H_VERSION 41 #define TF_COMPLETENESSBINS_H_VERSION \ 42 "TF_COMPLETENESSBINS_H V1.0 " 44 #include <tfxx/error.h> 45 #include <libtime++.h> 72 const libtime::TAbsoluteTime&
latest,
73 const libtime::TRelativeTime&
binsize);
86 unsigned int samplesinbin(
const libtime::TRelativeTime dt)
const;
91 libtime::TAbsoluteTime
bin(
const unsigned int& i)
const;
94 libtime::TAbsoluteTime
endofbin(
const unsigned int& i)
const;
96 libtime::TAbsoluteTime
nextbin(
const unsigned int& i)
const;
102 bool isinbin(
const libtime::TAbsoluteTime& d,
103 const unsigned int& i)
const;
111 const libtime::TRelativeTime dt)
const;
118 unsigned int bin(
const libtime::TAbsoluteTime& d)
const;
127 #endif // TF_COMPLETENESSBINS_H_VERSION (includeguard) libtime::TAbsoluteTime firstbin() const
libtime::TAbsoluteTime Mearliest
libtime::TAbsoluteTime earliest() const
unsigned int nbins() const
libtime::TRelativeTime Mbinsize
CompletenessBins(const libtime::TAbsoluteTime &earliest, const libtime::TAbsoluteTime &latest, const libtime::TRelativeTime &binsize)
constructor
libtime::TAbsoluteTime bin(const unsigned int &i) const
beginnig of bin (according to bin raster)
libtime::TAbsoluteTime Mlatest
class to define the time axis of the completeness time series.
bool isinbin(const libtime::TAbsoluteTime &d, const unsigned int &i) const
libtime::TAbsoluteTime latest() const
libtime::TAbsoluteTime Mfirstbin
unsigned int samplesinbin(const libtime::TRelativeTime dt) const
number of samples to be expected in a bin
libtime::TRelativeTime binsize() const
libtime::TAbsoluteTime endofbin(const unsigned int &i) const
end of bin (will be latest for last bin)
libtime::TAbsoluteTime nextbin(const unsigned int &i) const
start of bin (will be earliest for fisrt bin)