tcspc_stats — PHOTON tcspc op

• 資料種類:counts → table

• 呼叫: import fullseye as fs; fs.ledger.tcspc_stats(hist, bin_ps=100.0)(要直接呼叫實作,import photoncount; photoncount.tcspc_stats(hist, bin_ps=100.0);從台帳取用則 opsphoton.get("tcspc_stats"))

用法

到達時間直方圖的描述量:峰、重心、寬度、背景。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

Returns a dict: total_counts · peak_bin (int) · peak_counts · peak_time_ps (the centre of the peak bin, (k + 0.5)*bin_ps) · centroid_ps (the first moment over the whole histogram, background included — run tcspc_background_subtract first if that matters) · fwhm_ps (full width at half maximum *above the background*, by linear interpolation of the two half-crossings around the peak) · background_per_bin (the median bin, the same robust estimate tcspc_background_subtract uses) · signal_counts (total - background*bins) · sbr (signal-to-background ratio, or None when the background estimate is 0) · n_bins · window_ps.

fwhm_ps is None — never a fabricated number — when the profile does not cross the half-maximum on both sides of the peak, which is exactly what a monotone fluorescence decay does (its peak is bin 0). A None here means "this histogram has no width in the FWHM sense", not "the measurement failed".

Ground truth: for a noiseless Gaussian return of FWHM 500 ps, centroid_ps matches the analytic 2d/c to 1.8e-12 ps. fwhm_ps comes back as 508.41 at 100 ps bins and 503.07 at 50 ps bins — the linear interpolation between two bins on either flank systematically overestimates a Gaussian's width, by 1.7% and 0.6% respectively, and the error shrinks with the bin width. That bias is a property of the estimator; it is reported here rather than hidden behind a "500" that only holds in the continuum limit.

Raises ValueError: negative, non-finite or non-1-D *hist*, a non-positive *bin_ps*, and an all-zero histogram (no photon arrived, so there is no arrival time; the centroid would be 0/0).

詳細使用指南

• photon_timeresolved 族使用指南

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者、年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• photon_timeresolved — py -3.11 examples/photon_timeresolved.py

型別可銜接的下一個運算子(可接受 table 作為輸入)

—

同類別(tcspc)

tcspc_simulate · tcspc_irf_convolve · tcspc_background_subtract


*Provenance: photoncount.py — PHOTON 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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