tttrlib
A library for time-tagged time resolved data
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
DecayFit25 Class Reference

#include <DecayFit25.h>

Inheritance diagram for DecayFit25:
DecayFit

Static Public Member Functions

static void correct_input (double *x, double *xm, LVDoubleArray *corrections, int return_r)
 adjust parameters for fit25 and compute anisotropy
 
static double targetf (double *x, void *pv)
 
static double fit (double *x, short *fixed, MParam *p)
 Selects the lifetime out of a set of 4 fixed lifetimes that best describes the data.
 

Member Function Documentation

◆ correct_input()

static void DecayFit25::correct_input ( double * x,
double * xm,
LVDoubleArray * corrections,
int return_r )
static

adjust parameters for fit25 and compute anisotropy

Makes sure that (0 < gamma < 0.999) and (0<rho).

Parameters
x
xm
corrections
return_r
Returns

◆ fit()

static double DecayFit25::fit ( double * x,
short * fixed,
MParam * p )
static

Selects the lifetime out of a set of 4 fixed lifetimes that best describes the data.

This function selects out of a set of 4 lifetimes tau the lifetime that fits best the data and returns the lifetime through the parameter x[0].

If softBIFL flag is set to (x[6] < 0) and fixed[4] is zero gamma is optimized for each lifetime tau and the best gamma is returned by x[4]. The gamma is fitted with fit23.

Parameters
[in,out]xarray containing the parameters [0] tau1 output for best tau (always fixed), [1] tau2 (always fixed), [2] tau3 (always fixed), [3] tau4 (always fixed), [4] gamma (input, output), [5] fundamental anisotropy r0, [6] BIFL scatter fit? (flag), [7] r Scatter (output only), [8] r Experimental (output only)
fixedarray that is of least of length 5. Only the element fixed[4] is used. If fixed[4] is zero gamma is optimized for each lifetime.
pan instance of MParam that contains all relevant information, i.e., experimental data, the instrument response function, the needed corrections for the anisotropy (g-factor, l1, l2)
Returns

◆ targetf()

static double DecayFit25::targetf ( double * x,
void * pv )
static

Function used to compute the target value in fit 25

This is misleadingly named target25. Fit25 selects out of a set of 4 lifetimes the lifetime that describes best the data.

Parameters
x
pv
Returns

The documentation for this class was generated from the following file: