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.