PLS_Toolbox Documentation: savgolcv | < savgol | scale > |
savgolcv
Purpose
Cross-validation for Savitzky-Golay smoothing and differentiation.
Synopsis
cumpress = savgolcv(x,y,lv,width,order,deriv,ind,rm,cvi,pre); %for x class "double"
cumpress = savgolcv(x,y,lv,width,order,deriv,[],rm,cvi,pre); %for x class "dataset"
Description
SAVGOLCV performs cross-validation of Savitzky-Golay parameters: filter width, polynomial order, and derviative order.
INPUT:
OPTIONAL INPUTS:
The following are optional Savitzky-Golay parameters (calls SAVGOL). By entering a vector, instead of a scalar, these variables are cross-validated.
The following are optional cross-validation parameters (calls CROSSVAL).
OUTPUT:
The output is a 4 dimensional array with each dimension corresponding to one of the directions cross-validated over.
cumpress(i,:,:,:) = derivative dimension,
cumpress(:,j,:,:) = latent variable dimension,
cumpress(:,:,k,:) = window width dimension, and
cumpress(:,:,:,l) = polynomial order dimension.
See Also
baseline, crossval, lamsel, mscorr, savgol, specedit, stdfir
< savgol | scale > |