gauge_repeatability
gauge_repeatability ¤
GaugeRepeatabilityEvents ¤
GaugeRepeatabilityEvents(
dataframe: DataFrame,
signal_uuid: str,
*,
part_column: str = "value_string",
value_column: str = "value_double",
operator_column: Optional[str] = None,
event_uuid: str = "quality:gauge_rr",
time_column: str = "systime"
)
Bases: Base
Quality: Gauge Repeatability & Reproducibility (Gauge R&R)
Measurement System Analysis (MSA) for inline sensors. Evaluates repeatability (within-part, same sensor) and reproducibility (across operators/stations) using repeated measurements of reference parts or check standards.
Methods: - repeatability: Equipment Variation (EV) per part. - reproducibility: Appraiser Variation (AV) across operators. - gauge_rr_summary: Full Gauge R&R table with %GRR and ndc. - measurement_bias: Compare measurements to known reference values.
repeatability ¤
repeatability(
n_trials: Optional[int] = None,
) -> pd.DataFrame
Equipment Variation (EV) — within-part variation.
Groups measurements by part, computes range-based or pooled standard deviation estimate of repeatability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_trials
|
Optional[int]
|
Expected number of trials per part. If None, auto-detected from data. |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame with columns: part, mean, range, repeatability_std, EV. |
reproducibility ¤
reproducibility() -> pd.DataFrame
Appraiser Variation (AV) — between-operator variation.
Groups by operator_column, computes variation of part means across operators. Requires operator_column to be set.
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame with columns: operator, mean, reproducibility_std, AV. |
gauge_rr_summary ¤
gauge_rr_summary(
tolerance_range: Optional[float] = None,
) -> pd.DataFrame
Full Gauge R&R summary table.
Computes EV, AV, GRR, PV, TV, %GRR, %PV, and number of distinct categories (ndc).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tolerance_range
|
Optional[float]
|
Total tolerance range (USL - LSL). If provided, %GRR is also computed relative to tolerance. |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame with single row: EV, AV, GRR, PV, TV, pct_GRR, |
DataFrame
|
pct_PV, ndc, and optionally pct_GRR_tolerance. |
measurement_bias ¤
measurement_bias(
reference_values: Dict[str, float],
) -> pd.DataFrame
Compare average measurements to known reference values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_values
|
Dict[str, float]
|
Dict mapping part identifier to its true reference value, e.g. {"part_A": 10.0, "part_B": 20.0}. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame with columns: part, measured_mean, reference, |
DataFrame
|
bias, bias_pct. |