colour.colorimetry.sd_gaussian_fwhm¶
- colour.colorimetry.sd_gaussian_fwhm(peak_wavelength: float, fwhm: float, shape: colour.colorimetry.spectrum.SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) colour.colorimetry.spectrum.SpectralDistribution [source]¶
Return a gaussian spectral distribution of given spectral shape at given peak wavelength and full width at half maximum.
- Parameters
peak_wavelength (float) – Wavelength the gaussian spectral distribution will peak at.
fwhm (float) – 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 (colour.colorimetry.spectrum.SpectralShape) – Spectral shape used to create the spectral distribution.
kwargs (Any) – {
colour.SpectralDistribution
}, See the documentation of the previously listed class.
- Returns
Gaussian spectral distribution.
- Return type
Notes
By default, the spectral distribution will use the shape given by
colour.SPECTRAL_SHAPE_DEFAULT
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...