Description Usage Arguments Details Value See Also Examples

View source: R/dataStateSwitch.R

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

1 2 3 |

`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. |

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().

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

dateTime - a POSIX column of the time stamps for each observation

state - column of state membership (1, 2, or 3)

x - the process values for the first feature, corresponding to t + random error

y - the process values for the second feature, corresponding to t ^ 2 - 3 * t + random error

z - the process values for the third feature, corresponding to -t ^ 3 + 3 * t ^ 2 + random error

t - the non-stationary and autocorrelated latent feature

err1 - a Gaussian white noise vector

err2 - a Gaussian white noise vector

err3 - a Gaussian white noise vector

Calls: `processNOCdata`

, `faultSwitch`

,
`rotateScale3D`

. Called by: `mspProcessData`

1 2 | ```
nrml <- processNOCdata()
dataStateSwitch(nrml)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.