de.grogra.imp3d.spectral
public class IrregularSpectralCurve extends SpectralCurve
ArrayIndexOutOfBoundsExceptions if the
array lengths don't match.| Modifier and Type | Class and Description |
|---|---|
static class |
IrregularSpectralCurve.Type |
| Modifier and Type | Field and Description |
|---|---|
static IrregularSpectralCurve.Type |
$TYPE |
protected float[] |
amplitudes |
static SCOType.Field |
amplitudes$FIELD |
protected float[] |
wavelengths |
static SCOType.Field |
wavelengths$FIELD |
| Constructor and Description |
|---|
IrregularSpectralCurve() |
IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
Define an irregular spectral curve from the provided (sorted) wavelengths
and amplitude data.
|
| Modifier and Type | Method and Description |
|---|---|
ManageableType |
getManageableType() |
float |
sample(float lambda)
This function determines the actual spectral curve data.
|
toXYZ, toXYZaddReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final IrregularSpectralCurve.Type $TYPE
protected float[] amplitudes
public static final SCOType.Field amplitudes$FIELD
protected float[] wavelengths
public static final SCOType.Field wavelengths$FIELD
public IrregularSpectralCurve()
public IrregularSpectralCurve(float[] wavelengths,
float[] amplitudes)
wavelengths - sampled wavelengths in nmamplitudes - amplitude of the curve at the sampled pointspublic ManageableType getManageableType()
public float sample(float lambda)
SpectralCurvesample in class SpectralCurvelambda - wavelength to sample in nanometers