monitoringStat: Monitoring Statistic for Stochastic Textured Surfaces

View source: R/monitoringStat.R

monitoringStatR Documentation

Monitoring Statistic for Stochastic Textured Surfaces

Description

Computes monitoring statistic(s) for local defects (see Bui and Apley 2018a) and/or global changes (see Bui and Apley 2018b) for a given stochastic textured surface image.

Usage

monitoringStat(img, model, type, stat = c("ad", "bp"), w, cl = NULL, verbose = FALSE)

Arguments

img

the given image in the matrix format.

model

the object returned by surfacemodel

type

for local defects, type = 1; for global changes, type = 2; for both, type = 1:2

stat

for local defects only. The statistic used in the spatial moving statistics. Must be either "ad" (default) or "bp".

w

for local defects only. The dimension of the spatial (square) moving window. Must be an odd number >= 3.

cl

the object returned by climit or climit2.

verbose

if set to TRUE, output monitoring outcome.

Value

A monitoringStat object containing the following components:

sms

a matrix of the SMS values computed for pixels in img

stat

the stat argument

w

the w argument

localStat

the monitoring statistic for local defects of img

globalStat

the monitoring statistic for global changes of img

Author(s)

Anh Bui

References

Bui, A.T. and Apley., D.W. (2018a) "A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics, 60, 1-13.

Bui, A.T. and Apley, D.W. (2018b) "Monitoring for changes in the nature of stochastic textured surfaces", Journal of Quality Technology, 50, 363-378.

See Also

surfacemodel, sms, dataPrep

Examples

# run the example in the help file of climit()
?climit



spc4sts documentation built on May 24, 2022, 5:07 p.m.