78 XYDataset(std::vector<std::pair<double, double>> values)
79 : m_values(
std::move(values)) { };
95 static XYDataset factory(std::vector<std::pair<double, double>> vector_pair);
107 static XYDataset factory(
const std::vector<double>& x,
const std::vector<double>& y);
120 const_iterator begin()
const;
128 const_iterator end()
const;
136 const std::pair<double, double>& front()
const;
144 const std::pair<double, double>& back()
const;
152 size_t size()
const {
return m_values.size(); }
156 std::vector<std::pair<double, double>> m_values { };
165 #endif // XYDATASET_H_ std::vector< std::pair< double, double > >::const_iterator const_iterator
size_t size() const
Get the size of the vector container.
XYDataset(std::vector< std::pair< double, double >> values)
Constructor XYDataset interface represents an immutable data set.
This module provides an interface for accessing two dimensional datasets (pairs of (X...