dataStateSwitch: Alternate Observations in a Data Frame over States

Description Usage Arguments Details Value See Also Examples

View source: R/dataStateSwitch.R

Description

Split single-state process observations, apply multiple state projections, and combine these observations into a single data frame, arranged by process time or index.

Usage

1
2
3
dataStateSwitch(df, 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))

Arguments

df

A data frame returned by processNOCdata() or faultSwitch().

angles2

Change the principal angles for State 2.

scales2

Change the principal scales for State 2.

angles3

Change the principal angles for State 3.

scales3

Change the principal scales for State 3.

Details

This function splits a process data frame by state, and rotates and scales the observations from states 2 and 3 by the scales and angles specified in the function arguments. After state-specific rotation and scaling, this function combines the observations back together and orders them by process time index. This function takes in data frame returned by processNOCdata() or faultSwitch(). This function calls rotateScale3D() and is called internally by mspProcessData().

Value

A data frame containing the time index, state, and feature values after state-specific rotation and scaling; this data frame also contains the other columns of df that aren't the feature values. This data frame has

See Also

Calls: processNOCdata, faultSwitch, rotateScale3D. Called by: mspProcessData

Examples

1
2

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