The specspread functions determines the standard deviation of spectral centroids, also called spectral spread.
See also: speccentroid
Usage:
spread = specspread(lam,spec)
Where:
Parameter | Description |
spread | Returns the spectral spread of a series of spectra. |
lam | Specifies the wavelengths, vector or matrix. |
spec | Specifies the spectral power distribution(s), vector or matrix. |
Examples
Determine the spectral spread for a series of 10 pseudo measurements of V(\lambda) filters:
% create pseudo measurement data lam = repmat(380:780,10,1); VL = ciespec(lam,'VL'); % randomly shift wavelengths lam = lam + rand(size(lam)).*5; % determine spectral spread spread = specspread(lam,VL)
Exemplary result:
spread = 0.1447