#include <irregular.h>
Public Member Functions | |
IrregularSPD () | |
IrregularSPD (const float *const wavelengths, const float *const samples, int n, float resolution=5, SPDResamplingMethod resamplignMethod=Linear) | |
virtual | ~IrregularSPD () |
Protected Member Functions | |
void | init (float lMin, float lMax, const float *const s, int n) |
Private Member Functions | |
void | calc_spline_data (const float *const wavelengths, const float *const amplitudes, int n, float *spline_data) |
Definition at line 39 of file irregular.h.
lux::IrregularSPD::IrregularSPD | ( | ) | [inline] |
Definition at line 42 of file irregular.h.
IrregularSPD::IrregularSPD | ( | const float *const | wavelengths, | |
const float *const | samples, | |||
int | n, | |||
float | resolution = 5 , |
|||
SPDResamplingMethod | resamplignMethod = Linear | |||
) |
Definition at line 34 of file irregular.cpp.
References b, calc_spline_data(), Ceil2Int(), Floor2Int(), init(), lux::SPD::lambdaMax, lux::SPD::lambdaMin, lux::Linear, and cimg_library::cimg::max().
virtual lux::IrregularSPD::~IrregularSPD | ( | ) | [inline, virtual] |
Definition at line 53 of file irregular.h.
void IrregularSPD::calc_spline_data | ( | const float *const | wavelengths, | |
const float *const | amplitudes, | |||
int | n, | |||
float * | spline_data | |||
) | [private] |
void IrregularSPD::init | ( | float | lMin, | |
float | lMax, | |||
const float *const | s, | |||
int | n | |||
) | [protected] |
Definition at line 99 of file irregular.cpp.
References lux::SPD::AllocateSamples(), lux::SPD::delta, lux::SPD::invDelta, lux::SPD::lambdaMax, lux::SPD::lambdaMin, lux::SPD::nSamples, and lux::SPD::samples.
Referenced by IrregularSPD().