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

📄 stochasticprocess.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_AUX_STOCHASTICPROCESS_HPP#define INDII_ML_AUX_STOCHASTICPROCESS_HPP#include "vector.hpp"#include "matrix.hpp"#include "boost/serialization/serialization.hpp"namespace indii {  namespace ml {    namespace aux {/** * Abstract stochastic process. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 349 $ * @date $Date: 2007-11-20 20:48:40 +0000 (Tue, 20 Nov 2007) $ */template <class T = unsigned int>class StochasticProcess {public:  /**   * Destructor.   */  virtual ~StochasticProcess();  /**   * Get the dimensionality of the process.   */  virtual unsigned int getDimensions() const = 0;  /**   * Set the dimensionality of the process.   *   * @param N Dimensionality of the process.   * @param preserve True to preserve the current sufficient   * statistics of the process in the lower dimensional space,   * false if these may be discarded.   */  virtual void setDimensions(const unsigned int N,      const bool preserve = false) = 0;  /**   * Get the drift of the process.   *   * @return The drift of the process.   */  virtual const vector& getDrift() = 0;  /**   * Get the diffusion of the process.   *   * @return The diffusion of the process.   */  virtual const symmetric_matrix& getDiffusion() = 0;  /**   * Get the expected value of the process after a given time.   *   * @param delta \f$\Delta t\f$; time step.   *   * @return \f$\mathbf{\mu}(\Delta t)\f$; expected value of the process   * after time \f$\Delta t\f$.   */  virtual vector getExpectation(const T delta) = 0;  /**   * Get the covariance of the process after a given time.   *   * @param delta \f$\Delta t\f$; time step.   *   * @return \f$\Sigma(\Delta t)\f$; covariance of the process after   * time \f$\Delta t\f$.   */  virtual symmetric_matrix getCovariance(const T delta) = 0;  /**   * Sample from the process.   *   * @param delta \f$\Delta t\f$; time step.   *   * @return A sample from the process after time \f$\Delta t\f$.   */  virtual vector sample(const T delta) = 0;  /**   * Calculate the density of the distribution at a given point after   * a given time has elapsed.   *   * @param delta \f$\Delta t\f$; elapsed time.   * @param x \f$\mathbf{x}\f$; the point at which to calculate the   * density.   *   * @return The density of the distribution at \f$\mathbf{x}\f$ after   * time \f$\Delta t\f$.   */  virtual double densityAt(const T delta, const vector& x) = 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;};    }  }}using namespace indii::ml::aux;template <class T>StochasticProcess<T>::~StochasticProcess() {  //}template <class T>template <class Archive>void indii::ml::aux::StochasticProcess<T>::serialize(Archive& ar,    const unsigned int version) {  //}#endif

⌨️ 快捷键说明

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