21 #ifndef B3_LIKELIHOOD_H
22 #define B3_LIKELIHOOD_H
28 #include <gp_cpp/gp_base.h>
29 #include <gp_cpp/gp_predictive.h>
30 #include <gp_cpp/gp_covariance.h>
31 #include <gp_cpp/gp_mean.h>
40 typedef gp::Predictive_nl<gp::Manual, gp::Sqex>
Predictive;
46 pred_(make_default_pred()),
52 pred_(make_default_pred()),
81 return make_predictive_nl(Manual(
x, f), Sqex(1, 1),
x, f,
x);
86 const Activity_library& library_;
Activity_sequence sample(const As_prior &prior)
Sample an activity sequence from the given prior.
Definition: bbb_activity_sequence_prior.cpp:90
Likelihood(const Activity_library &library)
Construct a likelihood with no data.
Definition: bbb_likelihood.h:44
const Predictive & predictive() const
Get the GP predictive used for this likelihood.
Definition: bbb_likelihood.h:69
Definition: bbb_likelihood.h:37
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Definition: bbb_description.h:62
double operator()(const Description &desc) const
Compute the likelihood of a description.
Definition: bbb_likelihood.cpp:43
#define IFT(a, ex, msg)
Definition: l_exception.h:101
x
Definition: APPgetLargeConnectedEdges.m:100
const Activity_library & library() const
Get activity library.
Definition: bbb_likelihood.h:72
const Data & data() const
Get the data for this likelihood.
Definition: bbb_likelihood.h:62
Definition: bbb_data.h:37
gp::Predictive_nl< gp::Manual, gp::Sqex > Predictive
Definition: bbb_likelihood.h:40
Support for error handling exception classes in libKJB.
void set_data(const Data &data)
Set the data for this likelihood.
Definition: bbb_likelihood.h:59
Definition: bbb_activity_library.h:38
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
Likelihood(const Data &data, const Activity_library &library)
Construct a likelihood with the given data.
Definition: bbb_likelihood.h:50
Object thrown when computation fails somehow during execution.
Definition: l_exception.h:321