[][src]Module colorspace::vspd

Structs

FloatRange
Sample
SpdShape
SpdShapeIterator
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.

Enums

Interval

Traits

SpdElement

Functions

lagrange_coefficients_astm_e2022

Compute the Lagrange coefficients for given interval size using ASTM E2022-11 method

linspace