Commit d1e5b12f authored by Jean-Baptiste Mouret's avatar Jean-Baptiste Mouret
Browse files

add the mean functions

parent 1e5c4766
......@@ -8,10 +8,15 @@
namespace limbo {
namespace defaults {
struct mean_constant {
///@ingroup mean_defaults
BO_PARAM(double, constant, 1);
};
}
namespace mean {
///@ingroup mean
///A constant mean (the traditionnal choice for Bayesian optimization)
///
/// Parameter: double constant
template <typename Params>
struct Constant {
Constant(size_t dim_out = 1) : _dim_out(dim_out) {}
......
......@@ -5,6 +5,8 @@
namespace limbo {
namespace mean {
///@ingroup mean
///Use the mean of the observation as a constant mean
template <typename Params>
struct Data {
Data(size_t dim_out = 1) {}
......
......@@ -5,6 +5,9 @@
namespace limbo {
namespace mean {
///@ingroup mean
/// TODO
template <typename Params, typename MeanFunction>
struct FunctionARD {
FunctionARD(size_t dim_out = 1)
......
......@@ -5,6 +5,8 @@
namespace limbo {
namespace mean {
/// @ingroup mean
/// Constant with m=0
template <typename Params>
struct NullFunction {
NullFunction(size_t dim_out = 1) : _dim_out(dim_out) {}
......
Supports Markdown
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