The Spectrum type hides the details of the particular spectral representation used, so that changing this detail of the system only requires changing the Spectrum implementation.
Find responsible interval and linearly interpolate between the two sample values.
Calculate XYZ representation from RGB coefficients.
Are the values sorted by wavelength?
Calculate RGB coefficients from a XYZ representation.