colour.colorimetry.sd_gaussian_fwhm¶
-
colour.colorimetry.
sd_gaussian_fwhm
(peak_wavelength, fwhm, shape=SpectralShape(360, 780, 1))[source]¶ Returns a gaussian spectral distribution of given spectral shape at given peak wavelength and full width at half maximum.
- Parameters
peak_wavelength (numeric) – Wavelength the gaussian spectral distribution will peak at.
fwhm (numeric) – Full width at half maximum, i.e. width of the gaussian spectral distribution measured between those points on the y axis which are half the maximum amplitude.
shape (SpectralShape, optional) – Spectral shape used to create the spectral distribution.
- Returns
Gaussian spectral distribution.
- Return type
Notes
By default, the spectral distribution will use the shape given by
colour.DEFAULT_SPECTRAL_SHAPE
attribute.
Examples
>>> sd = sd_gaussian_fwhm(555, 25) >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[555] 1.0 >>> sd[530] 0.3678794...