<< pds_apply (X->X) Other pretaitments savgol >>

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

pds_calc

calculation of PDS-piecewise direct standardization, a method which uses the spectra acquired with a spectrometer B (master) to estimate the spectra that would have been obtained with a spectrometer A (slave)

Calling sequence

[model_pds] = pds_calc(x_B,x_A,k)

Arguments

x_B:

the spectra of n samples acquired on a spectrometer B; a div or a matrix of dimensions (n x q)

x_A:

the spectra of the same n samples than previously, in the same order, acquired on a spectrometer A; a div or a matrix of same dimension as x_B

k:

the length of a window; an odd number

model_pds:

the pds model; a div structure

model_pds.b.d is of dimensions (q x q)

model_pds.offset.d is of dimensions (q x 1)

Examples

[result]=pds_calc(x1,x2,7)

Bibliography

Authors


Report an issue
<< pds_apply (X->X) Other pretaitments savgol >>