SpectrogramTimeSerie.h
42 lines
| 1.4 KiB
| text/x-c
|
CLexer
r63 | #ifndef SCIQLOP_SPECTROGRAMTIMESERIE_H | |||
#define SCIQLOP_SPECTROGRAMTIMESERIE_H | ||||
#include "CoreGlobal.h" | ||||
#include <TimeSeries.h> | ||||
r85 | #include <cmath> | |||
r63 | ||||
class SCIQLOP_CORE_EXPORT SpectrogramTimeSerie | ||||
: public TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2> | ||||
{ | ||||
public: | ||||
r85 | double min_sampling = std::nan(""); | |||
double max_sampling = std::nan(""); | ||||
r87 | bool y_is_log = true; | |||
r65 | using item_t = | |||
r66 | decltype(std::declval< | |||
TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>()[0]); | ||||
using iterator_t = decltype( | ||||
std::declval<TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>>() | ||||
.begin()); | ||||
r63 | SpectrogramTimeSerie() {} | |||
r84 | SpectrogramTimeSerie(SpectrogramTimeSerie::axis_t&& t, | |||
SpectrogramTimeSerie::axis_t&& y, | ||||
r88 | SpectrogramTimeSerie::data_t&& values, | |||
r85 | std::vector<std::size_t>& shape, double min_sampling, | |||
r87 | double max_sampling, bool y_is_log = true) | |||
r85 | : TimeSeries::TimeSerie<double, SpectrogramTimeSerie, 2>(t, values, | |||
shape), | ||||
r87 | min_sampling{min_sampling}, max_sampling{max_sampling}, y_is_log{ | |||
y_is_log} | ||||
r83 | { | |||
_axes[1] = y; | ||||
} | ||||
r63 | ~SpectrogramTimeSerie() = default; | |||
using TimeSerie::TimeSerie; | ||||
}; | ||||
#endif // SCIQLOP_SPECTROGRAMTIMESERIE_H | ||||