phase_fractions — DRIVE pxrd op

• Data kinds: signal × signal × table → table

• Call: import fullseye as fs; fs.ledger.phase_fractions(two_theta, intensity, dictionary, background_order=4, sigma=None, lattice_tolerance=0.0, phases=None) (implementation को सीधे call करना हो तो import pxrd; pxrd.phase_fractions(two_theta, intensity, dictionary, background_order=4, sigma=None, lattice_tolerance=0.0, phases=None), registry से लेना हो तो opsdrive.get("phase_fractions"))

उपयोग

non-negative least squares (NNLS) से मिश्रण के phase fraction निकालता है (background को Chebyshev polynomial से साथ-साथ fit किया जाता है)।

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

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θ の不一致、背景の次数が負、未知の相の名前。

संदर्भ (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 करते हैं)

• poc_pxrd_phase_peel — py -3.11 examples/poc_pxrd_phase_peel.py

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

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

इसी category के (pxrd)

cif_read · cubic_prototype · powder_reflections · scherrer_size · debye_ring_image · detector_two_theta · detector_calibrate · azimuthal_integrate


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

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