mspProcessData: Simulate Normal or Fault Observations from a Single-State or...

Description Usage Arguments Details Value See Also Examples

View source: R/mspProcessData.R

Description

Generate single- or multi-state observations under normal operating conditions or under fault conditions.

Usage

1
2
3
4
5
mspProcessData(faults, period = 7 * 24 * 60, faultStartIndex = round(0.8433
  * period), startTime = "2015-05-16 10:00:00 CST", multiState = TRUE,
  angles2 = list(yaw = 0, pitch = 90, roll = 30), scales2 = c(1, 0.5, 2),
  angles3 = list(yaw = 90, pitch = 0, roll = -30), scales3 = c(0.25, 0.1,
  0.75), adpcaTest = FALSE, msadpcaTest = FALSE, ...)

Arguments

faults

A character vector of faults chosen. Options are "NOC", "A1", "B1", "C1", "A2", "B2", "C2", "A3", "B3", "C3", or "All". See details for more information.

period

The observation cycle length. Defaults to one week's worth of minute-level observations (10,080 observations).

faultStartIndex

An integer specifying the index at which the faults will start. Defaults to roughly 85 percent through the cycle.

startTime

a POSIXct object specifying the day and time for the starting observation.

multiState

Should the observations be generated from a multi-state process? Defaults to TRUE.

angles2

Change the principal angles for State 2. Defaults to yaw = 0, pitch = 90, and roll = 30.

scales2

Change the principal scales for State 2. Defaults to 1, 0.5, and 2.

angles3

Change the principal angles for State 3. Defaults to yaw = 90, pitch = 0, and roll = -30.

scales3

Change the principal scales for State 3. Defaults to 0.25, 0.1, and 0.75.

adpcaTest

If "multiState" is TRUE, incorrectly label all the states the same. This should only be used to test AD-PCA performance under a true multi-state model. Defaults to FALSE.

msadpcaTest

If "multiState" is FALSE, incorrectly label all the states at random. This should only be used to test MSAD-PCA performance under a true single-state model. Defaults to FALSE.

...

Lazy dots for internal arguments

Details

For details on how the faults are induced, see the "details" of the faultSwitch() function. This function also includes AD-PCA versus MSAD-PCA treatment arm testing. There are four possibilities to test:

Value

A list of data frames named with the names of the given faults with the following information:

If the user only specifies one fault, then this function will return the single xts matrix, instead of a list of one matrix. For details on how these features are defined, see the "details" of the processNOCdata() function.

See Also

Calls: processNOCdata, faultSwitch, dataStateSwitch. Simulation pipe flow: mspProcessData into mspTrain into mspMonitor into mspWarning.

Examples

1
2
3
4
5
6
## Not run: # cut down on R CMD check time

   mspProcessData(faults = "All")


## End(Not run)

mvMonitoring documentation built on Nov. 17, 2017, 6:31 a.m.