11 #ifndef __stir_decay_correction_factor_H__ 12 #define __stir_decay_correction_factor_H__ 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));
54 return std::exp(rel_time * std::log(2.) / isotope_halflife);
double decay_correction_factor(const double isotope_halflife, const double rel_time)
Computes the decay-correction factor for activity at a given time point.
Definition: decay_correction_factor.h:52
basic configuration include file