24 #ifndef _FUNCTION_APPROXIMATOR_RBFN_H_ 25 #define _FUNCTION_APPROXIMATOR_RBFN_H_ 36 class MetaParametersRBFN;
37 class ModelParametersRBFN;
64 void train(
const Eigen::Ref<const Eigen::MatrixXd>& inputs,
const Eigen::Ref<const Eigen::MatrixXd>& targets);
66 void predict(
const Eigen::Ref<const Eigen::MatrixXd>& inputs, Eigen::MatrixXd& output);
74 return std::string(
"RBFN");
77 bool saveGridData(
const Eigen::VectorXd& min,
const Eigen::VectorXd& max,
const Eigen::VectorXi& n_samples_per_dim, std::string directory,
bool overwrite=
false)
const;
89 mutable Eigen::VectorXd weights_prealloc_;
92 mutable Eigen::MatrixXd activations_one_prealloc_;
95 mutable Eigen::MatrixXd activations_prealloc_;
105 template<
class Archive>
106 void serialize(Archive & ar,
const unsigned int version);
113 #include <boost/serialization/export.hpp> 120 #endif // _FUNCTION_APPROXIMATOR_RBFN_H_
RBFN (Radial Basis Function Network) function approximator.
FunctionApproximator class header file.
void predict(const Eigen::Ref< const Eigen::MatrixXd > &inputs, Eigen::MatrixXd &output)
Query the function approximator to make a prediction.
void train(const Eigen::Ref< const Eigen::MatrixXd > &inputs, const Eigen::Ref< const Eigen::MatrixXd > &targets)
Train the function approximator with corresponding input and target examples.
BOOST_CLASS_EXPORT_KEY2(DmpBbo::TimeSystem,"TimeSystem")
Register this derived class.
std::string getName(void) const
Get the name of this function approximator.
void preallocateMemory(int n_basis_functions)
Preallocate memory to make certain functions real-time.
Base class for all function approximators.
FunctionApproximator * clone(void) const
Return a pointer to a deep copy of the FunctionApproximator object.
Model parameters for the Radial Basis Function Network (RBFN) function approximator.
bool saveGridData(const Eigen::VectorXd &min, const Eigen::VectorXd &max, const Eigen::VectorXi &n_samples_per_dim, std::string directory, bool overwrite=false) const
Generate a grid of inputs, and output the response of the basis functions and line segments for these...
BOOST_CLASS_IMPLEMENTATION(DmpBbo::FunctionApproximatorRBFN, boost::serialization::object_serializable)
Register this derived class.
friend class boost::serialization::access
Give boost serialization access to private members.