Class oneElLambda
Defined in File oneElLambda.h
Class Documentation
-
class oneElLambda
Small class structure to store one extinction element, including lambda, value, and origin
Public Functions
-
inline oneElLambda(double lambda, double value, int origin)
Constructor
- Parameters:
lambda – the \(\lambda\) value
value – the value at
lambdaorigin – an arbitrary integer that flags the provenance of the oneElLambda object, when part of a vector (used in SED::resample for instance !
-
inline oneElLambda(const oneElLambda &obj)
Copy constructor
- Parameters:
obj – the object to copy from
-
inline ~oneElLambda()
empty destructor
-
void interp(const oneElLambda &previous, const oneElLambda &next)
interpolate linearly between two adjacent lambda values (expected positive and ordered)
- Parameters:
previous – oneEleLambda before the current lambda
next – oneElLambda after current lambda
- Returns:
If correctly ordered, set current value to the linear interpolation at lambda between
previousandnext!
-
inline bool operator<(const oneElLambda &rhs) const
Check that current lamb < rhs.lamb
- Parameters:
rhs – the other object to compare lambda ordering to
-
inline oneElLambda(double lambda, double value, int origin)