colour.colorimetry.sd_gaussian_normal

colour.colorimetry.sd_gaussian_normal(mu, sigma, shape=SpectralShape(360, 780, 1), **kwargs)[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.

  • **kwargs (dict, optional) – {colour.SpectralDistribution}, Please refer to the documentation of the previously listed class.

Returns

Gaussian spectral distribution.

Return type

SpectralDistribution

Notes

Examples

>>> sd = sd_gaussian_normal(555, 25)
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]  
1.0000000...
>>> sd[530]  
0.6065306...