public class IrregularSpectralCurve extends SpectralCurve
ArrayIndexOutOfBoundsException
s if the
array lengths don't match.Constructor and Description |
---|
IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
Define an irregular spectral curve from the provided (sorted) wavelengths
and amplitude data.
|
Modifier and Type | Method and Description |
---|---|
float |
sample(float lambda)
This function determines the actual spectral curve data.
|
toXYZ
public IrregularSpectralCurve(float[] wavelengths, float[] amplitudes)
wavelengths
- sampled wavelengths in nmamplitudes
- amplitude of the curve at the sampled pointspublic float sample(float lambda)
SpectralCurve
sample
in class SpectralCurve
lambda
- wavelength to sample in nanometers