|
| TTTRRange (int start, int stop) |
| Constructs a TTTRRange with the specified start and stop indices.
|
|
| TTTRRange (int start=-1, int stop=-1, TTTRRange *other=nullptr) |
| Constructs a TTTRRange.
|
|
virtual size_t | size () |
| Gets the number of TTTR indices in the range.
|
|
| TTTRRange (const TTTRRange &p2) |
| Copy constructor.
|
|
std::vector< int > | get_tttr_indices () |
| Gets the vector of TTTR indices assigned to the range.
|
|
int | get_start () const |
| Gets the start index of the TTTR range.
|
|
int | get_stop () const |
| Gets the stop index of the TTTR range.
|
|
std::vector< int > | get_start_stop () |
| Gets a vector of the start and stop TTTR indices of the range.
|
|
unsigned long | get_stop_time (TTTR *tttr) const |
| Gets the stop time of the TTTR range.
|
|
unsigned long | get_start_time (TTTR *tttr) const |
| Gets the start time of the TTTR range.
|
|
std::vector< unsigned long > | get_start_stop_time (TTTR *tttr) |
| Gets a vector of the start and stop times of the TTTR range.
|
|
unsigned int | get_duration (TTTR *tttr) |
| Gets the duration between the start and stop times of the TTTR range.
|
|
void | insert (int idx) |
| Inserts an index into the TTTR index vector.
|
|
void | clear () |
| Clears the TTTR index set.
|
|
int | strip (const std::vector< int > &tttr_indices, int offset=0) |
| Strips TTTR indices from a range starting at tttr_indices[offset].
|
|
double | get_mean_microtime (TTTR *tttr_data, double microtime_resolution=-1.0, int minimum_number_of_photons=1) |
| Computes the mean microtime in units of the microtime resolution.
|
|
void | get_microtime_histogram (std::shared_ptr< TTTR > tttr, double **histogram, int *n_histogram, double **time, int *n_time, unsigned short micro_time_coarsening) |
| Gets the microtime histogram for the TTTRRange.
|
|
double | get_mean_lifetime (TTTR *tttr_data, int minimum_number_of_photons=3, TTTR *tttr_irf=nullptr, double m0_irf=1.0, double m1_irf=1.0, double dt=1.0, std::vector< double > *background=nullptr, double m0_bg=0.0, double m1_bg=0.0, double background_fraction=-1.0) |
| Computes the mean lifetime for the TTTRRange.
|
|
bool | operator== (const TTTRRange &other) const |
| Equality operator.
|
|
bool | operator!= (const TTTRRange &other) const |
| Inequality operator.
|
|
TTTRRange & | operator+= (const TTTRRange &rhs) |
| Compound assignment addition operator.
|
|
Represents a range of TTTR indices.
static double TTTRRange::compute_mean_lifetime |
( |
std::vector< int > & | tttr_indices, |
|
|
TTTR * | tttr_data, |
|
|
int | minimum_number_of_photons = 3, |
|
|
TTTR * | tttr_irf = nullptr, |
|
|
double | m0_irf = 1.0, |
|
|
double | m1_irf = 1.0, |
|
|
double | dt = 1.0, |
|
|
std::vector< double > * | background = nullptr, |
|
|
double | m0_bg = 0.0, |
|
|
double | m1_bg = 0.0, |
|
|
double | background_fraction = -1.0 ) |
|
static |
Computes the mean lifetime for a set of TTTR indices.
The average lifetimes are computed (not fitted) by the methods of moments (Irvin Isenberg, 1973, Biophysical journal).
If a TTTRRange has not enough photons, it is filled with zeros.
By default, fluorescence lifetimes are computed in units of the micro time if no dt is provided.
- Parameters
-
tttr_indices | Vector of TTTR indices. |
tttr_data | Pointer to a TTTR object. |
minimum_number_of_photons | Minimum number of photons in a micro time. |
tttr_irf | Pointer to a TTTR object of the IRF. |
m0_irf | Zero moment of the IRF (optional, default=1). |
m1_irf | First moment of the IRF (optional, default=1). |
dt | Time resolution of the micro time. |
background | Vector of background values (optional). |
m0_bg | Zero moment of the background (optional, default=0). |
m1_bg | First moment of the background (optional, default=0). |
background_fraction | Fraction of background pattern in data (if negative, no background). |
- Returns
- The mean lifetime.