# spectral10ToXyz

fun spectral10ToXyz(lambda: IntArray, reflectance: FloatArray, illuminant: Illuminant, observer: Observer): DoubleArray

Takes reflectance data on 10 nm intervals and calculates a CIEXYZ value according to ASTM E308. Data must be provided on 10 nm intervals corresponding to the nearest 10 nanometer. CIEXYZ values are calculated across the range 360 - 780 nm. If the provided data spans a shorter range (eg - 400 - 700 nm), the values at the boundaries are repeated.

#### Return

CIEXYZ value reported on 0 - 1.0 scale (element order X, Y, Z)

#### Parameters

lambda

Wavelength values of provided reflectance data.

reflectance

Reflectance data. Must contain the same number of elements as lambda

illuminant

Selected illuminant

observer

Selected observer