ScalarSeries.h
27 lines
| 853 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r118 | #ifndef SCIQLOP_SCALARSERIES_H | ||
#define SCIQLOP_SCALARSERIES_H | ||||
Alexandre Leroux
|
r425 | #include "CoreGlobal.h" | ||
Alexandre Leroux
|
r118 | #include <Data/DataSeries.h> | ||
/** | ||||
* @brief The ScalarSeries class is the implementation for a data series representing a scalar. | ||||
*/ | ||||
Alexandre Leroux
|
r425 | class SCIQLOP_CORE_EXPORT ScalarSeries : public DataSeries<1> { | ||
Alexandre Leroux
|
r118 | public: | ||
Alexandre Leroux
|
r361 | /** | ||
* 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 | ||||
*/ | ||||
Alexandre Leroux
|
r644 | explicit ScalarSeries(std::vector<double> xAxisData, std::vector<double> valuesData, | ||
Alexandre Leroux
|
r361 | const Unit &xAxisUnit, const Unit &valuesUnit); | ||
r510 | std::unique_ptr<IDataSeries> clone() const override; | |||
Alexandre Leroux
|
r522 | std::shared_ptr<IDataSeries> subDataSeries(const SqpRange &range) override; | ||
Alexandre Leroux
|
r118 | }; | ||
#endif // SCIQLOP_SCALARSERIES_H | ||||