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

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

simufilters

conversion of a wavelength unit into another wavelength unit, often shifted, according to the equation: x_new = x_old * filter'; very useful to convert frequencies into wavelengths, and vice-versa

Calling sequence

[x_new, filter] = simufilters(x_old,bandwidth, (width))

Arguments

x_old:

a div structure containig the data

x_old.d is of dimensions (n x q1)

x_old.v contains the labels of the input wavelengths, they are mandatory numbers, without strings

bandwidth:

a div structure containing the bandwidths associated to each output variable

bandwidth.d is a vector of numbers, of length q2

bandwidth.v contains the labels of the output variables, also numbers, without strings

(width):

an integer; if given, it is used as bandwidth for each output variable, instead of bandwidth.d

x_new:

the spectra of x_old, in the new unit

x_new.d is of dimensions (n x q1)

the q2 output units should be within the range of the q1 input units

filter:

a filter which allows the transformation of x_old into x_new; a div structure

filter.d is of dimensions (q2 x q1)

Examples

[xb,fltr]=simufilters(xa,bw,4)

Authors


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