pub fn timetrace(
    f: &File,
    params: &TimeTraceParams
) -> Result<TimeTraceResult, Error>
Expand description

Calculate the intensity timetrace of clicks on a TCSPC.

The intensity is computed by discretizing the duration of the experiment into intervals of fixed duration and counting how many clicks occur on each of them. The intensity during each interval is then the number of clicks divided by the length of the interval.

Resolution/Variance tradeoff

Reducing the resolution value (finer discretization in time) makes it possible to look at intensity dynamics on a finer timescale. This may be of interest if we are for example studying blinking dynamics or resonance shifts. However, there is a limit to how fine the time resolution can be. Finer resolutions lead to smaller numbers of clicks per interval and therefore the relative error for the number of counts grows as we make intervals finer.