convert gaps to completeness
Definition at line 46 of file fncompleteness.cc.
References CompletenessSeries::completeness, GapSeriesHeader::completenessbins, Gapid::dt, GapSeries::gapseries, GapSeries::header, CompletenessSeries::header, GapSeriesHeader::ID, and CompletenessBins::samplesinbin().
Referenced by main(), and printgaps().
49 TFXX_debug(debug,
"completeness",
50 "just entered function" <<
"\n" << gs.
header.
ID);
52 retseries.completeness.copyin(gs.
gapseries);
53 retseries.header=gs.
header;
56 retseries.completeness *= -100./samplesperbin;
57 retseries.completeness += 100.;
59 for (
unsigned int j=0; j<2; ++j)
65 TFXX_debug(debug,
"completeness",
66 TFXX_value(j) <<
" " << TFXX_value(samplesperbin));
67 retseries.completeness(i)=
68 100.*(1.-
static_cast<double>(gs.
gapseries(i))/samplesperbin);
72 for (
unsigned int j=retseries.completeness.first();
73 j<=retseries.completeness.last(); ++j)
75 std::cout << TFXX_value(j) <<
" " 76 << TFXX_value(retseries.completeness(j)) <<
"\n";
79 TFXX_debug(debug,
"completeness",
80 "about to leave function");
unsigned int samplesinbin(const libtime::TRelativeTime dt) const
number of samples to be expected in a bin
a class to hold a completeness series for one stream
libtime::TRelativeTime dt