robust op• 데이터 종류: matrix × signal → table
• 호출: import fullseye as fs; fs.ledger.residue_crt(residues, periods, weights=None, lo=0.0, hi=None) -> 'dict'(구현을 직접 호출하려면 import residue; residue.residue_crt(residues, periods, weights=None, lo=0.0, hi=None) -> 'dict', 원장에서 가져오려면 opsresidue.get("residue_crt"))
실수 주기에 대한 가중 강건 중국인의 나머지 정리 -> dict.
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
Solve v ≡ residues[i] (mod periods[i]) for v in [lo, hi). residues has the band axis first, shape (N,) or (N, ...) — every trailing element is solved independently (one pixel, one sample). weights (same shape, or (N,)) say how much each band is trusted — typically the product of the two amplitudes the phase came from, so a band with no contrast gets no vote.
Method: every candidate v = r_ref + k p_ref of the longest period inside the range is scored by phasor agreement sum_i w_i cos(2 pi (v - r_i)/p_i) (the maximum-likelihood criterion for von-Mises phase noise); the best one is refined by the inverse-variance-weighted mean of the signed residuals.
Returns {"value", "score", "margin", "residual", "n_candidates", "unambiguous_range"}: score in [-1, 1] (1 = all bands agree exactly), margin = best minus runner-up score (small = the answer was a near tie — treat as unreliable), residual per band in the units of v. hi defaults to lo + the least common multiple of the periods (when they are commensurate); a range wider than that is refused, because two values in it would have identical residues.
Exactness: integer residues of pairwise-coprime integer periods reproduce residue_integer_crt exactly. Robustness: with periods Γ M_i (M_i coprime integers) a value is recovered exactly whenever every residue error is below Γ/4 (Wang & Xia's bound); beyond it the margin collapses first.
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• poc_residue_crt — py -3.11 examples/poc_residue_crt.py
table 를 입력으로 받는 것)—
robust)*Provenance: residue.py — RESIDUE 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.