1 #ifndef HOPS_CHAINDATA_HPP
2 #define HOPS_CHAINDATA_HPP
15 negativeLogLikelihood(nullptr),
24 return *acceptanceRates;
28 this->acceptanceRates = std::shared_ptr<std::vector<double>>(acceptanceRates);
34 return *negativeLogLikelihood;
38 this->negativeLogLikelihood = std::shared_ptr<std::vector<double>>(negativeLogLikelihood);
42 const std::vector<Eigen::VectorXd>&
getStates()
const {
47 void setStates(
const std::shared_ptr<std::vector<Eigen::VectorXd>>& states) {
48 this->states = std::shared_ptr<std::vector<Eigen::VectorXd>>(states);
57 void setTimestamps(
const std::shared_ptr<std::vector<long>> timestamps) {
58 this->timestamps = std::shared_ptr<std::vector<long>>(timestamps);
63 if (acceptanceRates) {
64 fileWriter->
write(
"acceptanceRates", *acceptanceRates);
67 if (negativeLogLikelihood) {
68 fileWriter->
write(
"negativeLogLikelihood", *negativeLogLikelihood);
72 fileWriter->
write(
"states", *states);
76 fileWriter->
write(
"timestamps", *timestamps);
81 if (acceptanceRates) {
82 (*acceptanceRates.get()).clear();
85 if (negativeLogLikelihood) {
86 negativeLogLikelihood->clear();
99 std::shared_ptr<std::vector<double>> acceptanceRates;
100 std::shared_ptr<std::vector<double>> negativeLogLikelihood;
101 std::shared_ptr<std::vector<Eigen::VectorXd>> states;
102 std::shared_ptr<std::vector<long>> timestamps;
108 #endif // HOPS_CHAINDATA_HPP