kalzium/libscience
#include <spectrum.h>
Classes | |
class | peak |
Public Member Functions | |
Spectrum () | |
~Spectrum () | |
void | addPeak (Spectrum::peak *b) |
void | adjustIntensities () |
Spectrum * | adjustToWavelength (double min, double max) |
double | maxPeak () |
double | maxPeak (const int unit) |
double | minPeak () |
double | minPeak (const int unit) |
int | parentElementNumber () const |
QList< Spectrum::peak * > | peaklist () |
void | setParentElementNumber (int num) |
QList< double > | wavelengths (double min, double max) |
Detailed Description
This class represents a spectrum with all its properties
Definition at line 35 of file spectrum.h.
Constructor & Destructor Documentation
Spectrum::Spectrum | ( | ) |
This spectrum doesn't belong to any element.
Definition at line 123 of file spectrum.cpp.
Spectrum::~Spectrum | ( | ) |
public destructor
Definition at line 118 of file spectrum.cpp.
Member Function Documentation
|
inline |
adds the peak b
to the internal lists of peaks
Definition at line 75 of file spectrum.h.
void Spectrum::adjustIntensities | ( | ) |
sets the highest intensity to 1000 and adjusts the others
Definition at line 78 of file spectrum.cpp.
Spectrum * Spectrum::adjustToWavelength | ( | double | min, |
double | max | ||
) |
- Parameters
-
min the lowest allowed wavelength in nanometer max the highest allowed wavelength in nanometer
- Returns
- a spectrum with the wavelength in the range of
min
tomax
. The intensities are readjusted so that the biggest intensity is again 1000 and the others are adopted.
Definition at line 65 of file spectrum.cpp.
double Spectrum::maxPeak | ( | ) |
- Returns
- the biggest wavelength
Definition at line 46 of file spectrum.cpp.
double Spectrum::maxPeak | ( | const int | unit | ) |
Definition at line 59 of file spectrum.cpp.
double Spectrum::minPeak | ( | ) |
- Returns
- the smallest wavelength
Definition at line 28 of file spectrum.cpp.
double Spectrum::minPeak | ( | const int | unit | ) |
Definition at line 40 of file spectrum.cpp.
int Spectrum::parentElementNumber | ( | ) | const |
If the spectrum belongs to Iron, this method will return "26".
- Returns
- the number of the element the spectrum belongs to
Definition at line 113 of file spectrum.cpp.
|
inline |
- Returns
- the list of peaks of the spectrum
Definition at line 108 of file spectrum.h.
|
inline |
Definition at line 130 of file spectrum.h.
QList< double > Spectrum::wavelengths | ( | double | min, |
double | max | ||
) |
- Parameters
-
min the lowest allowed wavelength in nanometer max the highest allowed wavelength in nanometer
- Returns
- the wavelength in a QList<double>
Definition at line 100 of file spectrum.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.