Control charts

StatisticalProcessMonitoring.is_IC_vecMethod
is_IC_vec(CH::MultipleControlChart)
is_OC_vec(CH::MultipleControlChart)

Check whether each individual control chart that makes up a multiple control chart is in control or out of control.

Returns

A vector of Bool, whose length is equal to the number of individual statistics.

source
StatisticalProcessMonitoring.set_limit!Method
function set_limit!(CH::AbstractChart, limit::AbstractLimit)
function set_limit!(CH::AbstractChart, h::Float64)
function set_limit!(CH::MultipleControlChart, h::Vector{Float64})
function set_limit!(CH::MultipleControlChart, h::Float64)
function set_limit!(CH::MultipleControlChart, h::Float64, j::Int)

Set the control limit of a control chart.

Returns

The new control limit.

source
StatisticalProcessMonitoring.shallow_copy_simMethod
shallow_copy_sim(CH::ControlChart)

Create a shallow copy of a control chart, so that only the statistic and the control limit are copied. This is done to prevent copying eventual Phase 2 data multiple times and thus reduce computational effort when optimizing the control limit and the chart tuning parameters.

source
StatisticalProcessMonitoring.run_path_simMethod
run_path_sim(CH::AbstractChart; maxiter)
run_path_sim(CH::MultipleControlChart; maxiter)

Simulates a run length path for the control chart CH by sampling new data from its Phase II object.

Inputs

  • CH::AbstractChart - A control chart.
  • maxiter::Real - The maximum value of the run length. Defaults to min(maxrl(CH), 10*get_nominal_value(CH))

Returns

  • A vector containing the simulated values of the control chart.
source
StatisticalProcessMonitoring.run_simMethod
run_sim(CH::AbstractChart, DGP::AbstractPhase2)

Simulates a run length for the control chart CH by sampling new data from the provided data-generating process DGP.

Inputs

  • CH - A control chart.
  • DGP - An AbstractPhase2 object.

Returns

  • An Int representing the simulated run length.
source
StatisticalProcessMonitoring.run_simMethod
run_sim(CH::AbstractChart)

Simulates a run length for the control chart CH by sampling new data from its Phase II object.

Inputs

  • CH - A control chart.

Returns

  • An Int representing the simulated run length.
source
StatisticalProcessMonitoring.run_sim_ocMethod
run_sim_oc(CH::AbstractChart; shift = 0.0)

Simulates a run length under location shift for the control chart CH by sampling new data from its Phase II object.

Inputs

  • CH::AbstractChart: A control chart.
  • shift::Float64 - The magnitude of location shift.

Returns

  • An Int representing the simulated run length.
source
StatisticalProcessMonitoring.run_sim_saMethod
run_sim_sa(CH::AbstractChart, maxiter::Real, delta::Real)

Simulates a run length for the control chart CH by sampling new data from the Phase II object, to be used by the stochastic approximation algorithm implemented in the saCL! function.

Inputs

  • CH - A control chart.
  • maxiter - The maximum value of the run length.
  • delta - A value controlling how much the control limit must be shifted for the gain estimation during the first stage.

Returns

  • A NamedTuple containing the simulated run length, rl, the simulated run length with control limit shifted by delta, rlPlus, and the simulated run length with control limit shifted by -delta, rlMinus.
source
StatisticalProcessMonitoring.apply_chart!Method
apply_chart(CH::AbstractChart, x::AbstractVecOrMat)
apply_chart!(CH::AbstractChart, x::AbstractVector)
apply_chart!(CH::AbstractChart, x::AbstractMatrix)

Apply a control chart to a data vector or data matrix x.

source