search_expected_tries — DRIVE pegsym op

• 資料種類:scalar × scalar → table

• 呼叫: import fullseye as fs; fs.ledger.search_expected_tries(n_sym: 'int', phi_cap: 'float', order: 'str' = 'alternate', estimate_sigma: 'float | None' = None) -> 'dict'(要直接呼叫實作,import pegsym; pegsym.search_expected_tries(n_sym: 'int', phi_cap: 'float', order: 'str' = 'alternate', estimate_sigma: 'float | None' = None) -> 'dict';從台帳取用則 opsdrive.get("search_expected_tries"))

用法

> 該運算子的說明尚無譯文,以下照原文給出。

回転の探索の期待試行回数(未知の向きの誤差 e が 1 周期に一様のとき、厳密)。候補 c_k(:func:rotation_search_plan)で k 回目に

入るのは e が [c_k − φ, c_k + φ] (周期 P)に初めて入った時なので E = Σ_k (1 − |∪_{i<k} I_i|/P)。計算は区間の端で円周を割り、

小区間ごとに最初に覆う候補の番号を数える(同じ値、O(M²) のベクトル演算)。刻みが

ちょうど 2φ なら E = (M + 1)/2(`closed)。対称を知らない探索(周期 2π、M₁ = ⌈π/φ⌉)との比 ratio_vs_blind` → 1/n。

`estimate_sigma` [rad] を渡すと、e が推定値のまわりに標準偏差 σ の正規(周期に巻いたもの)で、"alternate" の順の期待回数も返す

(`expected_with_estimate、数値積分 4,096 点)。返り expected・closed・M・blind_expected・ratio_vs_blind`。

Raises ValueError: n_sym < 1、phi_cap ≤ 0、sigma ≤ 0。

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者・年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• poc_peg_symmetry_search — py -3.11 examples/poc_peg_symmetry_search.py

型別可銜接的下一個運算子(可接受 table 作為輸入)

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

同類別(pegsym)

polygon_peg · polygon_offset · polygon_fit_check · rotation_window · polygon_two_point_depth · polygon_coverage_image · plane_topview · polygon_yaw_read


*Provenance: pegsym.py — DRIVE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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