Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
fda92d32
Commit
fda92d32
authored
Jun 22, 2016
by
Vaios Papaspyros
Browse files
gp_parego.hpp: fixed the failed assertion issues due to different sample and observation sizes
parent
1c9648ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/limbo/experimental/model/gp_parego.hpp
View file @
fda92d32
...
...
@@ -41,13 +41,18 @@ namespace limbo {
const
Eigen
::
VectorXd
&
noises_bl
=
Eigen
::
VectorXd
())
{
_raw_observations
=
observations
;
_nb_objs
=
observations
[
0
].
size
();
auto
new_observations
=
_scalarize_obs
(
observations
);
Model
::
compute
(
samples
,
new_observations
,
noises
,
bl_samples
);
}
/// add sample will NOT be incremental (we call compute each time)
void
add_sample
(
const
Eigen
::
VectorXd
&
sample
,
const
Eigen
::
VectorXd
&
observation
,
double
noise
)
{
this
->
_samples
.
push_back
(
sample
);
this
->
_noises
.
conservativeResize
(
this
->
_noises
.
size
()
+
1
);
this
->
_noises
[
this
->
_noises
.
size
()
-
1
]
=
noise
;
_raw_observations
.
push_back
(
observation
);
this
->
compute
(
this
->
_samples
,
_raw_observations
,
this
->
_noises
,
this
->
_bl_samples
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment