VSPD | A Varying Spectral Power Distribution. Stores a list of Samples,
i.e. paired wavelength and power values. Wavelengths are assumed to be in
nanometres.
The samples may have uniform or varying spacing, although most functions
that operate on VSPD require uniform samples and will either error or
pre-interpolate when given a varying VSPD.
VSPD is designed for flexbility and accuracy, to be used for generating
reference solutions. As such, it uses f64 as an underlying storage type
and its methods generally do a lot of copying of the whole sample vector.
If you want a type that is optimized for performance at the expense of
accuracy, you should look at SPD instead.
|