public class IrregularSpectralCurve extends SpectralCurve
ArrayIndexOutOfBoundsException
s if the
array lengths don't match.Constructor | Description |
---|---|
IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes) |
Define an irregular spectral curve from the provided (sorted) wavelengths
and amplitude data.
|
Modifier and Type | Method | Description |
---|---|---|
float |
sample(float lambda) |
This function determines the actual spectral curve data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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