colour.sd_gaussian

colour.sd_gaussian(mu_peak_wavelength: float, sigma_fwhm: float, shape: colour.colorimetry.spectrum.SpectralShape = SPECTRAL_SHAPE_DEFAULT, method: Union[Literal['Normal', 'FWHM'], str] = 'Normal', **kwargs: Any) colour.colorimetry.spectrum.SpectralDistribution[source]

Return a gaussian spectral distribution of given spectral shape using given method.

Parameters
Returns

Gaussian spectral distribution.

Return type

colour.SpectralDistribution

Notes

Examples

>>> sd = sd_gaussian(555, 25)
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]  
1.0000000...
>>> sd[530]  
0.6065306...
>>> sd = sd_gaussian(555, 25, method='FWHM')
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]
1.0
>>> sd[530]  
0.3678794...