fullseye

stat_zscore — MATH stats op

使い方

Standardise a 1-D sample: (x - mean) / std (population ddof=0).

The result has mean 0 and standard deviation 1 — the common currency for comparing residuals across scales and flagging outliers (|z| > 3).

A constant input raises ValueError — the decision, stated: with zero variance the z-score is 0/0. Returning silent zeros would claim “every point is perfectly average”, which is a convention but hides upstream breakage (a sensor stuck at one value would sail through an outlier gate). Fail-closed instead; a caller who wants the all-zeros convention can catch this and substitute deliberately.

HALCON: no direct tuple operator (compose tuple_mean + tuple_deviation + arithmetic).

ファミリ共通の入力契約(fail-closed)

mathops の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(signal を入力に取れる)

mat_solve · mat_lstsq · stat_describe · stat_histogram · interp_linear · interp_cubic · interp_scattered · poly_fit

同カテゴリ(stats)

stat_describe · stat_histogram · stat_covariance · stat_correlation


Provenance: mathops.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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