specvar
The specvar functions determines the variance and standard deviation of an arbitrary number of input spectra.
See also: plotspecrange
Usage:
v = specvar(lam,spec)
Where:
Parameter | Description |
v | Return struct for a series of spectra containing the fields: – min: minimum spectral data – max: maximum spectral data – mean: average spectral data – SD: standard deviation of spectral data |
lam | Specifies the wavelengths, vector or matrix. |
spec | Specifies the spectral power distribution(s), vector or matrix. |
Examples
Determine the spectral variance for a series of 10 pseudo measurements of V(\lambda) filters:
% create pseudo measurement data lam = 380:780; A = ciespec(lam,'A'); % create spectrum copies A = repmat(A,10,1); % randomly shift reference A spectra A = A + rand(size(A)); % determine spectral spread v = specvar(lam,A)
Exemplary result:
struct with fields: min: [ … ] (1×401 double) max: [ … ] (1×401 double) mean: [ … ] (1×401 double) SD: [ … ] (1×401 double)