faultFilter: Process Fault Filtering

Description Usage Arguments Details Value See Also Examples

View source: R/faultFilter.R

Description

Flag and filter out observations beyond normal operating conditions, then return the observations within normal operating conditions.

Usage

1
faultFilter(trainData, testData, updateFreq, faultsToTriggerAlarm = 5, ...)

Arguments

trainData

An xts data matrix of initial training observations

testData

The data not included in the training data set

updateFreq

The number of observations from the test data matrix that must be returned to update the training data matrix and move it forward.

faultsToTriggerAlarm

Specifies how many sequential faults will cause an alarm to trigger. Defaults to 5.

...

Lazy dots for additional internal arguments

Details

This function is essentially a wrapper function to call and organize the output from these other internal functions: faultDetect(), threshold(), and pca(). It is applied over a rolling window, with observation width equal to updateFreq, of the larger full data matrix via the processMonitor() function, wherein the testing and training data sets move forward in time across the entire data matrix.

This internal function is called by processMonitor().

Value

A list of class "fault_ls" with the following:

See Also

Calls: pca, threshold, faultDetect. Called by: processMonitor.

Examples

1
2
3
4
5
6
7
nrml <- mspProcessData(faults = "NOC")
# Select the data under state 1
data <- nrml[nrml[,1] == 1]

faultFilter(trainData = data[1:672, -1],
            testData = data[673:3360, -1],
            updateFreq = 336)

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