public class IrregularSpectralCurve extends SpectralCurve
ArrayIndexOutOfBoundsExceptions 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, waittoXYZpublic IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
wavelengths - sampled wavelengths in nmamplitudes - amplitude of the curve at the sampled pointspublic float sample(float lambda)
SpectralCurvesample in class SpectralCurvelambda - wavelength to sample in nanometers