colour.colorimetry.sd_gaussian_normal#
- colour.colorimetry.sd_gaussian_normal(mu: float, sigma: float, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) SpectralDistribution[source]#
Generate a Gaussian spectral distribution of the specified spectral shape at specified mean wavelength \(\mu\) and standard deviation \(\sigma\).
- Parameters:
mu (float) – Mean wavelength \(\mu\) at which the Gaussian spectral distribution will peak.
sigma (float) – Standard deviation \(\sigma\) of the Gaussian spectral distribution.
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:
Notes
By default, the spectral distribution will use the shape specified by
colour.SPECTRAL_SHAPE_DEFAULTattribute.
Examples
>>> sd = sd_gaussian_normal(555, 25) >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[555] 1.0 >>> sd[530] 0.6065306...