23#include "observables/Observable.hpp"
44 std::shared_ptr<Observables::Observable> obs)
47 void update(boost::mpi::communicator
const &comm)
override;
51 const std::vector<std::vector<
double>> &
time_series()
const {
return m_data; }
52 std::vector<std::size_t>
shape()
const override {
53 std::vector<std::size_t>
shape{m_data.size()};
54 auto obs_shape = m_obs->shape();
55 shape.insert(
shape.end(), obs_shape.begin(), obs_shape.end());
58 void clear() { m_data.clear(); }
61 std::shared_ptr<Observables::Observable> m_obs;
62 std::vector<std::vector<double>> m_data;
Record values of an observable.
std::vector< std::size_t > shape() const override
void update(boost::mpi::communicator const &comm) override
TimeSeries(::System::System const *system, int delta_N, std::shared_ptr< Observables::Observable > obs)
void set_internal_state(std::string const &) final
std::string get_internal_state() const final
const std::vector< std::vector< double > > & time_series() const