Class oneElLambda

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 lambda

  • origin – 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

  • nextoneElLambda after current lambda

Returns:

If correctly ordered, set current value to the linear interpolation at lambda between previous and next !

inline bool operator<(const oneElLambda &rhs) const

Check that current lamb < rhs.lamb

Parameters:

rhs – the other object to compare lambda ordering to

Public Members

double lamb

lambda value

double val

extinction value at lambda

double ori

index : index referring to filter transmission (ori=0), or SED flux (ori=1), or attenuation law (ori=2), or opacity (ori=3), or emission line (ori=5)