colour.sd_multi_leds

colour.sd_multi_leds(peak_wavelengths, fwhm, peak_power_ratios=None, shape=SpectralShape(360, 780, 1), method='Ohno 2005')[source]

Returns a multi LED spectral distribution of given spectral shape at given peak wavelengths and full widths at half maximum according to given method.

Parameters:
  • peak_wavelengths (array_like) – Wavelengths the multi LED spectral distribution will peak at, i.e. the peaks for each generated single LED spectral distributions.
  • fwhm (array_like) – Full widths at half maximum, i.e. widths of the underlying gaussian spectral distributions measured between those points on the y axis which are half the maximum amplitude.
  • peak_power_ratios (array_like, optional) – Peak power ratios for each generated single LED spectral distributions.
  • shape (SpectralShape, optional) – Spectral shape used to create the spectral distribution.
  • method (unicode, optional) – {‘Ohno 2005’}, Computation method.
Returns:

Multi LED spectral distribution.

Return type:

SpectralDistribution

Notes

References

[Ohno2005], [Ohno2008a]

Examples

>>> sd = sd_multi_leds(
...     np.array([457, 530, 615]),
...     np.array([20, 30, 20]),
...     np.array([0.731, 1.000, 1.660]),
... )
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[500]  # doctest: +ELLIPSIS
0.1295132...