1#ifndef TTTRLIB_PHASOR_H
2#define TTTRLIB_PHASOR_H
36 unsigned short* microtimes,
int n_microtimes,
37 double frequency = 1.0,
38 int minimum_number_of_photons = 1,
41 std::vector<int>* idxs =
nullptr
58 std::vector<int> &bincounts,
60 int minimum_number_of_photons,
61 double g_irf,
double s_irf
77 double g_irf,
double s_irf,
78 double g_exp,
double s_exp
94 double g_irf,
double s_irf,
95 double g_exp,
double s_exp
Utility class for computing phasor values in decay analysis.
Definition DecayPhasor.h:15
static std::vector< double > compute_phasor_bincounts(std::vector< int > &bincounts, double frequency, int minimum_number_of_photons, double g_irf, double s_irf)
Compute the phasor (g, s) for a histogram/bincounts of microtimes.
static std::vector< double > compute_phasor(unsigned short *microtimes, int n_microtimes, double frequency=1.0, int minimum_number_of_photons=1, double g_irf=1.0, double s_irf=0.0, std::vector< int > *idxs=nullptr)
Compute the phasor (g, s) for a selection of microtimes.
static double s(double g_irf, double s_irf, double g_exp, double s_exp)
Calculate s-value for a given set of phasor parameters.
static double g(double g_irf, double s_irf, double g_exp, double s_exp)
Calculate g-value for a given set of phasor parameters.