ScalarSeries.h
23 lines
| 710 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r126 | #ifndef SCIQLOP_SCALARSERIES_H | ||
#define SCIQLOP_SCALARSERIES_H | ||||
#include <Data/DataSeries.h> | ||||
/** | ||||
* @brief The ScalarSeries class is the implementation for a data series representing a scalar. | ||||
*/ | ||||
class ScalarSeries : public DataSeries<1> { | ||||
public: | ||||
Alexandre Leroux
|
r392 | /** | ||
* Ctor with two vectors. The vectors must have the same size, otherwise a ScalarSeries with no | ||||
* values will be created. | ||||
* @param xAxisData x-axis data | ||||
* @param valuesData values data | ||||
*/ | ||||
explicit ScalarSeries(QVector<double> xAxisData, QVector<double> valuesData, | ||||
const Unit &xAxisUnit, const Unit &valuesUnit); | ||||
Alexandre Leroux
|
r310 | std::unique_ptr<IDataSeries> clone() const; | ||
Alexandre Leroux
|
r126 | }; | ||
#endif // SCIQLOP_SCALARSERIES_H | ||||