colour.colorimetry.sd_gaussian_fwhm#

colour.colorimetry.sd_gaussian_fwhm(peak_wavelength: float, fwhm: float, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) SpectralDistribution[source]#

Generate a Gaussian spectral distribution of the specified spectral shape at specified peak wavelength and full width at half maximum (FWHM).

Parameters:
  • peak_wavelength (float) – Wavelength at which the Gaussian spectral distribution peaks.

  • 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 (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:

colour.SpectralDistribution

Notes

Examples

>>> sd = sd_gaussian_fwhm(555, 25)
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]
1.0
>>> sd[530]
0.062...