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

📄 densitytreeleaf.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_AUX_DENSITYTREELEAF_HPP#define INDII_ML_AUX_DENSITYTREELEAF_HPP#include "DensityTreeNode.hpp"namespace indii {  namespace ml {    namespace aux {/** * Leaf node of a density tree. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 375 $ * @date $Date: 2008-02-11 02:49:13 +0000 (Mon, 11 Feb 2008) $ * * Represents a weighted uniform distribution across a given * hyper-rectangle. * * @section DensityTreeLeaf_serialization Serialization * * This class supports serialization through the Boost.Serialization * library. * * @see UniformPdf */class DensityTreeLeaf : public DensityTreeNode {public:  /**   * Default constructor.   *   * This should generally only be used when the object is to be   * restored from a serialization.   */  DensityTreeLeaf();  /**   * Constructor.   *   * @param weight \f$w\f$; weight of the node.   * @param volume \f$v\f$; volume of the node.   * @param lower Lower bound on the hyper-rectangle enclosed by the   * node.   * @param upper Upper bound on the hyper-rectangle enclosed by the   * node.   */  DensityTreeLeaf(const vector& lower, const vector& upper,      const double weight, const double volume);    /**   * Destructor.   */  virtual ~DensityTreeLeaf();    virtual vector sumExpectation();  virtual symmetric_matrix sumCovariance();  virtual vector sample(const double u);  virtual double densityAt(const vector& x);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::aux::DensityTreeLeaf::serialize(Archive& ar,    const unsigned int version) {  ar & boost::serialization::base_object<DensityTreeNode>(*this);}#endif

⌨️ 快捷键说明

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