get_run_length: Calculate Run Length

View source: R/helper.R

get_run_lengthR 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 comparing the total number of flagged observations to the total number of observations.

Usage

get_run_length(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.