sms | R Documentation |
Computes the spatial moving statistics (SMS) for pixels in a given image.
sms(img, stat = c("ad", "bp"), w, Fr, gamma = (w + 1)/2)
img |
the image to compute the SMS for. |
stat |
the statistic used in the SMS. Must be either |
w |
the dimension of the square moving window of the SMS. It must be an odd number >= 3. |
Fr |
the reference ecdf with exponential tail approximation (see |
gamma |
the bandwidth parameter for |
A matrix containing the SMS values computed for the pixels in img
.
Anh Bui
Bui, A.T. and Apley., D.W. (2018a) "A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics, 60, 1-13.
ad, bp, monitoringStat
img <- matrix(rnorm(100),10,10) ms.ad <- sms(img, "ad", 3, exptailecdf(rnorm(1000))) ms.bp <- sms(img, "bp", 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.