get_first_fault: Calculate Run Length

View source: R/helper.R

get_first_faultR Documentation

Calculate Run Length

Description

Calculates the run length for a single instance of a method given a plotting statistic and an upper limit by returning the index of the first flagged observation.

Usage

get_first_fault(pstat, h)

Arguments

pstat

The plotting statistic from a fault detection method.

h

The upper in-control limit for this plotting statistic.

Value

Returns the run length.


dpweix/mlmcusum documentation built on July 31, 2023, 10:13 a.m.