ScalarSeries.cpp
13 lines
| 416 B
| text/x-c
|
CppLexer
|
r118 | #include <Data/ScalarSeries.h> | ||
|
r175 | ScalarSeries::ScalarSeries(int size, const Unit &xAxisUnit, const Unit &valuesUnit) | ||
: DataSeries{std::make_shared<ArrayData<1> >(size), xAxisUnit, | ||||
std::make_shared<ArrayData<1> >(size), valuesUnit} | ||||
|
r118 | { | ||
} | ||||
void ScalarSeries::setData(int index, double x, double value) noexcept | ||||
{ | ||||
xAxisData()->setData(index, x); | ||||
valuesData()->setData(index, value); | ||||
} | ||||