simulate_data_FRTM: Simulate data for real-time monitoring of univariate...

View source: R/FRTM.R

simulate_data_FRTMR Documentation

Simulate data for real-time monitoring of univariate functional data

Description

Generate synthetic data as in the simulation study of Centofanti et al. (2024).

Usage

simulate_data_FRTM(
  n_obs = 100,
  scenario = "1",
  shift = "IC",
  alignemnt_level = "M1",
  t_out_type = "0.3",
  severity = 0.5,
  grid = seq(0, 1, length.out = 100)
)

Arguments

n_obs

Number of curves generated.

scenario

A character string indicating the scenario considered. It could be "1", and "2".

shift

A character string indicating the shift considered. It could be "IC", in-control data, "OC_h", Shift A (Phase),"OC_x", Shift B (Amplitude) and "OC_xh", Shift C (Amplitude and Phase).

alignemnt_level

A character string indicating the alignment level considered. It could be "M1", "M2", and "M3".

t_out_type

If "0.3", change point at the 30% of the process. If "0.6", change point at the 60% of the process.

severity

Severity level.

grid

Grid of evaluation points.

Value

A list containing the following arguments:

x_err: A list containing the discrete observations for each curve.

grid_i: A list of vector of time points where the curves are sampled.

h: A list containing the discrete observations of the warping function for each curve.

template: The discrete observations of the true template function.

grid_template: Time points where the template is sampled.

x_true: A list containing the discrete observations of the amplitude function for each curve.

grid: Grid of evaluation points.

out_control_t: Time of the change point.

References

Centofanti, F., A. Lepore, M. Kulahci, and M. P. Spooner (2024). Real-time monitoring of functional data. Accepted for publication in Journal of Quality Technology.

Examples

library(funcharts)
data<-simulate_data_FRTM(n_obs=20)

funcharts documentation built on April 3, 2025, 7:47 p.m.