⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 functionmodel.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_ODE_FUNCTIONMODEL_HPP#define INDII_ML_ODE_FUNCTIONMODEL_HPP#include "boost/serialization/serialization.hpp"namespace indii {  namespace ml {    namespace ode {/** * Function specification. This class encapsulates a time-dependent * function. Instantiating an object of a class derived from this is * one way to supply a function to a FunctionCollection object. The * other is to define a static function of type f_t(). */class FunctionModel {public:  /**   * Destructor.   */  virtual ~FunctionModel();  /**   * Evaluate the function.   *   * @param t The time.   * @param y State variable values at time t.   *   * @return The calculated value of the function given the arguments.   */  virtual double evaluate(const double t, const double y[]) = 0;private:  /**   * Serialize, or restore from serialization.   */  template<class Archive>  void serialize(Archive& ar, const unsigned int version);  /*   * Boost.Serialization requirements.   */  friend class boost::serialization::access;};    }  }}template<class Archive>void indii::ml::ode::FunctionModel::serialize(Archive& ar,    const unsigned int version) {  //}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -