tcspc_stats — PHOTON tcspc op

데이터 종류: countstable

호출: 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 :func: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

:func: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 패밀리 가이드

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

photon_timeresolvedpy -3.11 examples/photon_timeresolved.py

타입이 이어지는 다음 연산자(table 를 입력으로 받는 것)

같은 카테고리(tcspc)

tcspc_simulate · tcspc_irf_convolve · tcspc_background_subtract


*Provenance: photoncount.py — PHOTON 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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