spc_mt_unit_space — SPC mt op

• 資料種類:matrix → table

• 呼叫: import fullseye as fs; fs.ledger.spc_mt_unit_space(data)(要直接呼叫實作,import spc; spc.spc_mt_unit_space(data);從台帳取用則 opsspc.get("spc_mt_unit_space"))

用法

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

Build an MT-method unit space from known-good observations.

`data is a 2-D array of shape (n, p) — n observations of p`

features, all of which must be normal product. The unit space is the

triple `(mean, std, inv_corr)`: per-feature mean and ddof=1 standard

deviation, and the inverse of the correlation matrix of the standardised

data. Feed it to :func:spc_mt_distance to score new observations.

Returns a dict with `mean, std, corr and inv_corr` arrays, the

unit space's own `md per row, md_sq_mean`, the exact expected value

`md_sq_mean_exact = (n-1)/n, the counts n and p`, how many features

had no spread (`flat_features`), and whether the correlation matrix was

singular enough to need a pseudo-inverse (`pseudo_inverse`).

The mean of `md**2 over the unit space equals (n-1)/n` exactly — the

quantitative form of "a unit space averages a distance of one". It reaches 1

only as `n grows; the deficit is exactly 1/n`.

Raises `ValueError`: a non-2-D / empty *data*, fewer than two

observations (no spread to standardise by), zero features, or non-finite

input.

參考(範例資料・文獻)

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

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

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

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

• poc_mt_hidden_fault — py -3.11 examples/poc_mt_hidden_fault.py

• poc_spc — py -3.11 examples/poc_spc.py

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

msa_anova_table · msa_gauge_rr · msa_bias_linearity · msa_attribute_agreement · gum_standard_uncertainty · gum_propagate · gum_expanded · gum_monte_carlo

同類別(mt)

spc_mt_distance · spc_mt_sn_ratio


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

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