Description Usage Arguments Examples
View source: R/createTrainingSpecs.R
Using only the data from the start to the day before testing day, train the ADPCA model using functions from mvMonitoring
1 2 | createTrainingSpecs(data, testingDay, rollingWindowDays, alpha = 0.01,
faultsToTriggerAlarm = 5, statistic = "T2", by = "Time")
|
data |
Dataframe of process data |
testingDay |
Date object, all dates before this date will be included in the training analysis |
rollingWindowDays |
Number of observations used in the rolling window |
alpha |
Accuracy of analysis, defaults to 0.01 |
faultsToTriggerAlarm |
Number of abnormal observations to be considered an alarm, defaults to five |
statistic |
Use "T2" or "SPE" |
by |
"Time" or number of observations to use in training window |
1 2 3 4 5 6 | trainingSpecHolder <- createTrainingSpecs(data = dataBR[[i]],
testingDay = testingDay,
trainObs = rollingWindowObs,
updateFreq = updateObs,
alpha = alphaN,
faultsToTriggerAlarm = faultsToTriggerAlarm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.