spc_monitor: Monitor New Functions with an Elastic SPC Model

View source: R/fdaspc.R

spc_monitorR Documentation

Monitor New Functions with an Elastic SPC Model

Description

Aligns new functions to the training template of an fdaspc() model (same lambda, method and penalty) and computes the scores, T^2, SPE, alarms and per-time-point contributions for amplitude and phase. A fault is detected when T^2 exceeds its limit or SPE exceeds its limit.

Usage

spc_monitor(x, f_new)

Arguments

x

An object of class fdaspc.

f_new

A matrix (M \times N) of N new functions sampled at x$warp_data$time.

Value

The fdaspc object with mon filled in, a list with

fn, qn, gam

the aligned functions, SRVFs and warping functions

amp, ph

lists with the scores T, T2, SPE, the alarms alarmT2, alarmSPE and alarm, the limits T2lim and SPElim, and the contributions contT2 and contSPE (rows are the new functions and columns the time points; the amplitude ones have the f(id) term last)

alarm

a logical vector, any amplitude or phase alarm


fdasrvf documentation built on Nov. 21, 2026, 1:09 a.m.