38 assert(end_time - start_time > 0);
39 const double lambda = std::log(2.) / isotope_halflife;
41 return std::fabs(lambda * (end_time - start_time)) < .01
42 ? std::exp(start_time * lambda)
43 : lambda * (end_time - start_time) / (std::exp(-start_time * lambda) - std::exp(-end_time * lambda));
double decay_correction_factor(const double isotope_halflife, const double start_time, const double end_time)
Compute decay-correction factor for a time frame.
Definition decay_correction_factor.h:36