tcspc_irf_convolve — PHOTON tcspc op

• Data kinds: counts → counts

• Call: import fullseye as fs; fs.ledger.tcspc_irf_convolve(hist, bin_ps=100.0, irf_fwhm_ps=200.0, truncate=4.0) (implementation को सीधे call करना हो तो import photoncount; photoncount.tcspc_irf_convolve(hist, bin_ps=100.0, irf_fwhm_ps=200.0, truncate=4.0), registry से लेना हो तो opsphoton.get("tcspc_irf_convolve"))

उपयोग

arrival-time histogram को instrument response (timing jitter) से blur करता है।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

The temporal analogue of a PSF convolution: a detector's timing uncertainty (SPAD jitter + TDC quantisation + laser pulse width) smears every arrival time by the instrument response function, here a Gaussian of full width at half maximum *irf_fwhm_ps*. The kernel is the exact bin integral of that Gaussian (erf differences), normalised to sum 1, truncated at +-truncate*sigma and forced to odd length so the convolution is centred.

Ground truth: convolving a unit spike in the middle of a 256-bin window with irf_fwhm_ps = 500 at bin_ps = 50 leaves the centroid exactly where it was (measured shift 0.0 ps — the kernel is symmetric) and gives a profile whose measured FWHM is 501.22 ps. That 0.24% excess over 500 is the *measurement*, not the kernel: tcspc_stats finds the half-maximum crossings by linear interpolation between bins, which slightly overestimates the width of a Gaussian.

Total counts are preserved *except* at the window edges, where mode='same' discards the tail that falls outside — measured loss exactly 0 for that centred spike, but a genuine loss for a pulse within a few sigma of either end.

Returns a float64 1-D histogram of the same length as *hist*.

Raises ValueError: negative, non-finite or non-1-D *hist*, a non-positive *bin_ps* / *irf_fwhm_ps* / *truncate*, an IRF sigma below 1e-3 bins (the kernel would be a delta and the op a no-op — say so instead of pretending to blur), and a kernel that would be longer than the MAX_BINS cap.

उपयोग की विस्तृत guide

• photon_timeresolved family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• photon_timeresolved — py -3.11 examples/photon_timeresolved.py

वे अगले ops जिनसे type जुड़ता है (counts को input के रूप में लेते हैं)

tcspc_coates_correct · tcspc_background_subtract · tcspc_stats · dtof_depth · lifetime_fit · lifetime_phasor

इसी category के (tcspc)

tcspc_simulate · tcspc_background_subtract · tcspc_stats


*Provenance: photoncount.py — PHOTON operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.