Spectrum class.
More...
#include <Spectre.h>
|
| std::vector< std::pair< int, decimal > > | freqs |
| | Vector of pairs (Frequency,Power) More...
|
| |
Spectrum class.
Definition at line 24 of file Spectre.h.
◆ Spectre() [1/2]
Default constructor.
Definition at line 29 of file Spectre.h.
◆ Spectre() [2/2]
| Spectre::Spectre |
( |
const Spectre & |
other | ) |
|
|
inline |
Copy constructor.
Definition at line 34 of file Spectre.h.
◆ ~Spectre()
| virtual Spectre::~Spectre |
( |
| ) |
|
|
inlinevirtual |
◆ addFrequencie()
| void Spectre::addFrequencie |
( |
int |
freq, |
|
|
decimal |
power |
|
) |
| |
|
inline |
Add a new pair (frequency,power)
Definition at line 101 of file Spectre.h.
◆ getFrequencie()
| int Spectre::getFrequencie |
( |
unsigned int |
i | ) |
|
|
inline |
Get a the ith frequency of the spectrum.
Definition at line 67 of file Spectre.h.
◆ getFrequencies() [1/2]
| void Spectre::getFrequencies |
( |
int * |
r | ) |
|
|
inline |
Return into an array (sized before) all the frequency values of the spectrum.
Definition at line 59 of file Spectre.h.
◆ getFrequencies() [2/2]
| void Spectre::getFrequencies |
( |
std::vector< int > & |
r | ) |
|
|
inline |
Return into a vector all the frequency values of the spectrum.
Definition at line 51 of file Spectre.h.
◆ getPower()
| decimal Spectre::getPower |
( |
unsigned int |
i | ) |
|
|
inline |
Get the power for a frequency given by its index.
Definition at line 92 of file Spectre.h.
◆ getPowers() [1/2]
| void Spectre::getPowers |
( |
decimal * |
r | ) |
|
|
inline |
Return into an array (sized before) all the power values of the spectrum.
Definition at line 84 of file Spectre.h.
◆ getPowers() [2/2]
| void Spectre::getPowers |
( |
std::vector< decimal > & |
r | ) |
|
|
inline |
Return into a vector all the power values of the spectrum.
Definition at line 76 of file Spectre.h.
◆ getSizeSpectre()
| size_t Spectre::getSizeSpectre |
( |
| ) |
|
|
inline |
Get the size of the vector storing the spectrum.
Definition at line 45 of file Spectre.h.
◆ freqs
| std::vector<std::pair<int, decimal> > Spectre::freqs |
|
protected |
Vector of pairs (Frequency,Power)
Definition at line 107 of file Spectre.h.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Acoustic/Spectre.h