Skip to contents

Compute Q-statistic and in-domain flag for new spectra against a fitted PCA

Usage

predict_q_statistic(pca, X_new, ucl_q)

Arguments

pca

Fitted PCA list (from .fit_pca())

X_new

Numeric matrix of new (preprocessed) spectra

ucl_q

Upper Confidence Limit (from q_statistic_ucl())

Value

Data frame with columns: q_stat, ucl_q, in_domain