redroy44 / least-squares

library for least squares
0 stars 0 forks source link

Use std::vector as estimate() parameter #5

Closed redroy44 closed 8 years ago

redroy44 commented 9 years ago

The other way around should work:

std::vector v; ... ... // Fill v with data ... boost::circular_buffer cb(v.begin(), v.end());

meaning:

boost::circular_buffer cb; ... // Fill cb with data std::vector v(cb.begin(), cb.end());

redroy44 commented 8 years ago

or maybe arma::vec to keep the API consistent