LineList Class Reference
Implements line list spectrum. More...
#include <source.h>
Inheritance diagram for LineList:

Public Member Functions | |
LineList (std::string linelist) | |
void | read_spectrum (std::string linelist) |
double | get_spectral_density (double wavelength) |
std::vector< double > | get_spectrum (std::vector< double > wavelength) |
std::vector< double > | get_wavelength () |
![]() | |
Source () | |
virtual | ~Source () |
virtual std::vector< double > | get_spectral_density (std::vector< double > wavelength) |
void | set_doppler_shift (double shift) |
void | set_integration_steps (int n) |
Private Attributes | |
std::map< double, double > | data |
Detailed Description
Implements line list spectrum.
Constructor & Destructor Documentation
LineList::LineList | ( | std::string | linelist | ) |
Member Function Documentation
|
virtual |
This function returns the spectral density at a given wavelength. It is the essential function for all subclasses.
- See also
- Source::get_spectrum() will use this function to integrate over it to retreive a spectrum for a given wavelength vector.
- Parameters
-
wavelength wavelength
- Returns
- spectral density
Reimplemented from Source.
|
virtual |
Returns spectrum at given wavelength
This function returns the integrated spectral density for a given wavelength vector.
- Parameters
-
wavelength wavelength vector
- Returns
- spectrum at given wavelength
Reimplemented from Source.
std::vector< double > LineList::get_wavelength | ( | ) |
void LineList::read_spectrum | ( | std::string | linelist | ) |
Member Data Documentation
|
private |
The documentation for this class was generated from the following files:
- /home/stuermer/Repos/cpp/EchelleSimulator/include/source.h
- /home/stuermer/Repos/cpp/EchelleSimulator/src/source.cpp