<< normc (X->X) Other pretaitments snv >>

fact >> (X->X) Other pretaitments > savgol

savgol

smoothing, first and second derivates of spectra according to Savitsky-Golay

Calling sequence

[result] = savgol(x,window,deriv, (degree))

Arguments

x:

a Div structure or a matrix of dimensions (n x q)

window:

the window for the calculation; an odd integer >=5

deriv:

the derivative: 0 (smoothing), 1 (first derivative) or 2 (second derivative)

(degree):

the degree of the polynom; an integer between 2 and 5 ;by default degree=2

result.d0:

a Div structure containing the smoothed spectra

result.d0.d is a matrix of dimensions (n x q)

result.d1:

a Div structure containing the first derivates of the spectra

result.d1.d is a matrix of dimensions (n x q)

result.d2:

a Div structure containing the second derivates of the spectra

result.d2.d is a matrix of dimensions (n x q)

Examples

[result]=savgol(x,15,1)

Bibliography

Authors


Report an issue
<< normc (X->X) Other pretaitments snv >>