colour.sd_single_led

colour.sd_single_led(peak_wavelength, fwhm, shape=SpectralShape(360, 780, 1), method='Ohno 2005', **kwargs)[source]

Returns a single LED spectral distribution of given spectral shape at given peak wavelength and full width at half maximum according to given method.

Parameters
  • peak_wavelength (numeric) – Wavelength the single LED spectral distribution will peak at.

  • fwhm (numeric) – Full width at half maximum, i.e. width of the underlying gaussian spectral distribution measured between those points on the y axis which are half the maximum amplitude.

  • shape (SpectralShape, optional) – Spectral shape used to create the spectral distribution.

  • method (unicode, optional) – {‘Ohno 2005’}, Computation method.

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

Returns

Single LED spectral distribution.

Return type

SpectralDistribution

Notes

References

[Ohn05], [OD08]

Examples

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