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.
monitoringStat(img, model, type, stat = c("ad", "bp"), w, cl = NULL, verbose = FALSE)
the given image in the matrix format.
the object returned by surfacemodel
for local defects, type = 1
; for global changes, type = 2
; for both, type = 1:2
for local defects only. The statistic used in the spatial moving statistics. Must be either "ad"
(default) or "bp"
.
for local defects only. The dimension of the spatial (square) moving window. Must be an odd number >= 3.
the object returned by climit
or climit2
.
if set to TRUE
, output monitoring outcome.
A monitoringStat
object containing the following components:
a matrix of the SMS values computed for pixels in img
the stat
argument
the w
argument
the monitoring statistic for local defects of img
the monitoring statistic for global changes of img
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.
# NOT RUN {
# run the example in the help file of climit()
?climit
# }
Run the code above in your browser using DataLab