colour.colorimetry.sd_gaussian_normal#

colour.colorimetry.sd_gaussian_normal(mu: float, sigma: float, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) 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 (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_normal(555, 25)
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]  
1.0
>>> sd[530]  
0.6065306...