specspread

The specspread functions determines the standard deviation of spectral centroids, also called spectral spread.

See also: speccentroid

Usage:

spread = specspread(lam,spec)

Where:

ParameterDescription
spreadReturns the spectral spread of a series of spectra.
lamSpecifies the wavelengths, vector or matrix.
specSpecifies 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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.