colour.colorimetry.sd_gaussian_normal¶
- colour.colorimetry.sd_gaussian_normal(mu: float, sigma: 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 mean wavelength \(\mu\) and standard deviation \(sigma\).
- Parameters
mu (float) – Mean wavelength \(\mu\) the gaussian spectral distribution will peak at.
sigma (float) – Standard deviation \(sigma\) of the gaussian spectral distribution.
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_normal(555, 25) >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[555] 1.0000000... >>> sd[530] 0.6065306...