tttrlib
A library for time-tagged time resolved data
Loading...
Searching...
No Matches
DecayPhasor.h
Go to the documentation of this file.
1#ifndef TTTRLIB_PHASOR_H
2#define TTTRLIB_PHASOR_H
3
4#include <vector>
5#include <cmath>
6#include <algorithm> /* std::max */
7
8#include "TTTR.h" /* TTTR */
9#include "CLSMImage.h" /* CLSMImage */
10
11
16
17public:
18
35 static std::vector<double> compute_phasor(
36 unsigned short* microtimes, int n_microtimes,
37 double frequency = 1.0,
38 int minimum_number_of_photons = 1,
39 double g_irf = 1.0,
40 double s_irf = 0.0,
41 std::vector<int>* idxs = nullptr
42 );
43
44
57 static std::vector<double> compute_phasor_bincounts(
58 std::vector<int> &bincounts,
59 double frequency,
60 int minimum_number_of_photons,
61 double g_irf, double s_irf
62 );
63
64
76 static double g(
77 double g_irf, double s_irf,
78 double g_exp, double s_exp
79 );
80
81
93 static double s(
94 double g_irf, double s_irf,
95 double g_exp, double s_exp
96 );
97
98};
99
100
101#endif //TTTRLIB_PHASOR_H
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.