pxrd op• 資料種類:signal × signal × table → table
• 呼叫: import fullseye as fs; fs.ledger.phase_fractions(two_theta, intensity, dictionary, background_order=4, sigma=None, lattice_tolerance=0.0, phases=None)(要直接呼叫實作,import pxrd; pxrd.phase_fractions(two_theta, intensity, dictionary, background_order=4, sigma=None, lattice_tolerance=0.0, phases=None);從台帳取用則 opsdrive.get("phase_fractions"))
以非負最小平方(NNLS)求混合物的物相分率(背景以 Chebyshev 多項式同時擬合)。
y ≈ Σ sₚ Rₚ(2θ) + Σ cₖ Tₖ(2θ)、sₚ >= 0、cₖ 符號自由(scipy.optimize.lsq_linear 的 BVLS)。體積分率 vₚ ∝ sₚ、重量分率 Wₚ ∝ sₚ ρₚ(見 module 的 docstring)。傳入 sigma 時以 1/σ 加權。lattice_tolerance > 0 時,對每個相在 1 ± tolerance 內以黃金分割的座標下降精修晶格的倍率(參考的晶格常數與試樣的晶格常數有偏差時,峰錯開一半的參考會倍率下降、分率偏倚 —— 見陷阱的門)。phases 僅使用字典中的部分名稱。
回傳值(dict): names、scale、volume_fraction、weight_fraction、lattice_scale、fit、background、residual、rwp(加權相對殘差)、two_theta、wavelength。
Raises ValueError: 長度不一致、字典的晶格與 2θ 不一致、背景階數為負、未知的相名稱。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• poc_pxrd_phase_peel — py -3.11 examples/poc_pxrd_phase_peel.py
table 作為輸入)course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same
pxrd)cif_read · cubic_prototype · powder_reflections · scherrer_size · debye_ring_image · detector_two_theta · detector_calibrate · azimuthal_integrate
*Provenance: pxrd.py — DRIVE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.