|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
Fluorescence decay convolution ============================== Fast convolution ---------------- In ``IMP.bff`` there are a set of different routines that can be used to compute fluorescence decays. Most fluorescence decays are linear combinations of exponential decays. Convolutions of such fluorescence decays with instrument response functions can be computed using the routines (fconv, fconv_per, fconv_per_cs, etc.). Here, fconv stands for fast convolution. ``IMP.bff`` provides routines that make use of SIMD (Single Instruction Multiple Data). The SIMD routines use of the AVX extension (Advanced Vector Extension). The SIMD routines compute in parallel decays composed of more than a single fluorescence lifetime. The SIMD routines require CPUs with 'modern' instruction sets. Most x86 CPUs that were manufacture since 2012 are supported.
Variables | |
| ax | |
| color | |
| dt = time_axis[1]-time_axis[0] | |
| ex = time.perf_counter() - t_start | |
| fig | |
| fit | |
| ind = np.arange(len(times)) | |
| irf = scipy.stats.norm.pdf(time_axis, loc=irf_position, scale=irf_width) | |
| float | irf_position = 4.0 |
| float | irf_width = 0.25 |
| label | |
| lifetime_spectrum = np.array([1., 4, 1., 0.4] * 64) | |
| model = np.zeros_like(irf) | |
| model_avx = np.zeros_like(irf) | |
| int | n_channels = 2000 |
| int | n_runs = 50 |
| list | names = ["fconv", "fconv_per"] |
| ncols | |
| nrows | |
| int | period = 16 |
| sharex | |
| int | start = 0 |
| stop = len(irf) | |
| t_start = time.perf_counter() | |
| time_axis = np.linspace(0, period, n_channels) | |
| times = list() | |
| times_avx = list() | |
| float | width = 0.35 |
| x | |
| plot_convolution_routines.ax |
Definition at line 90 of file plot_convolution_routines.py.
| plot_convolution_routines.color |
Definition at line 127 of file plot_convolution_routines.py.
| plot_convolution_routines.dt = time_axis[1]-time_axis[0] |
Definition at line 40 of file plot_convolution_routines.py.
| plot_convolution_routines.ex = time.perf_counter() - t_start |
Definition at line 55 of file plot_convolution_routines.py.
| plot_convolution_routines.fig |
Definition at line 90 of file plot_convolution_routines.py.
| plot_convolution_routines.fit |
Definition at line 54 of file plot_convolution_routines.py.
| plot_convolution_routines.ind = np.arange(len(times)) |
Definition at line 121 of file plot_convolution_routines.py.
| plot_convolution_routines.irf = scipy.stats.norm.pdf(time_axis, loc=irf_position, scale=irf_width) |
Definition at line 38 of file plot_convolution_routines.py.
| float plot_convolution_routines.irf_position = 4.0 |
Definition at line 35 of file plot_convolution_routines.py.
| float plot_convolution_routines.irf_width = 0.25 |
Definition at line 36 of file plot_convolution_routines.py.
| plot_convolution_routines.label |
Definition at line 98 of file plot_convolution_routines.py.
| plot_convolution_routines.lifetime_spectrum = np.array([1., 4, 1., 0.4] * 64) |
Definition at line 41 of file plot_convolution_routines.py.
| plot_convolution_routines.model = np.zeros_like(irf) |
Definition at line 42 of file plot_convolution_routines.py.
| plot_convolution_routines.model_avx = np.zeros_like(irf) |
Definition at line 101 of file plot_convolution_routines.py.
| int plot_convolution_routines.n_channels = 2000 |
Definition at line 34 of file plot_convolution_routines.py.
| int plot_convolution_routines.n_runs = 50 |
Definition at line 45 of file plot_convolution_routines.py.
| list plot_convolution_routines.names = ["fconv", "fconv_per"] |
Definition at line 51 of file plot_convolution_routines.py.
| plot_convolution_routines.ncols |
Definition at line 90 of file plot_convolution_routines.py.
| plot_convolution_routines.nrows |
Definition at line 90 of file plot_convolution_routines.py.
| plot_convolution_routines.period = 16 |
Definition at line 33 of file plot_convolution_routines.py.
| plot_convolution_routines.sharex |
Definition at line 90 of file plot_convolution_routines.py.
| plot_convolution_routines.start = 0 |
Definition at line 44 of file plot_convolution_routines.py.
| plot_convolution_routines.stop = len(irf) |
Definition at line 43 of file plot_convolution_routines.py.
| plot_convolution_routines.t_start = time.perf_counter() |
Definition at line 52 of file plot_convolution_routines.py.
| plot_convolution_routines.time_axis = np.linspace(0, period, n_channels) |
Definition at line 37 of file plot_convolution_routines.py.
| float times = list() |
Definition at line 49 of file plot_convolution_routines.py.
| float times_avx = list() |
Definition at line 50 of file plot_convolution_routines.py.
| plot_convolution_routines.width = 0.35 |
Definition at line 126 of file plot_convolution_routines.py.
| plot_convolution_routines.x |
Definition at line 54 of file plot_convolution_routines.py.