colour.colorimetry.sd_gaussian_normal¶
-
colour.colorimetry.
sd_gaussian_normal
(mu, sigma, shape=SpectralShape(360, 780, 1))[source]¶ Returns a gaussian spectral distribution of given spectral shape at given mean wavelength \(\mu\) and standard deviation \(sigma\).
Parameters: - mu (numeric) – Mean wavelength \(\mu\) the gaussian spectral distribution will peak at.
- sigma (numeric) – Standard deviation \(sigma\) of the gaussian spectral distribution.
- 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_normal(555, 25) >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[555] # doctest: +ELLIPSIS 1.0000000... >>> sd[530] # doctest: +ELLIPSIS 0.6065306...