Commit 2cd3a53c authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

Fix minor bug/typo

parent f14be3a0
...@@ -247,7 +247,7 @@ namespace limbo { ...@@ -247,7 +247,7 @@ namespace limbo {
/// return the number of samples used to compute the GP /// return the number of samples used to compute the GP
int nb_samples() const int nb_samples() const
{ {
return (_gp_models.size() > 0) ? _gp_models[0].nb_samples() : 0; return _observations.size();
} }
/// recomputes the GPs /// recomputes the GPs
...@@ -268,7 +268,8 @@ namespace limbo { ...@@ -268,7 +268,8 @@ namespace limbo {
/// return the list of samples that have been tested so far /// return the list of samples that have been tested so far
const std::vector<Eigen::VectorXd>& samples() const const std::vector<Eigen::VectorXd>& samples() const
{ {
return _observations.size(); assert(_gp_models.size());
return _gp_models[0].samples();
} }
/// return the mean observation /// return the mean observation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment