densitytreemixturepdf.hpp

来自「dysii是一款非常出色的滤波函数库」· HPP 代码 · 共 84 行

HPP
84
字号
#ifndef INDII_ML_AUX_DENSITYTREEMIXTUREPDF_HPP#define INDII_ML_AUX_DENSITYTREEMIXTUREPDF_HPP#include "StandardMixturePdf.hpp"#include "DensityTreePdf.hpp"namespace indii {  namespace ml {    namespace aux {/** * Density tree mixture probability density. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ * * @see MixturePdf for more information regarding the serialization * and parallelisation features of this class. */class DensityTreeMixturePdf : public StandardMixturePdf<DensityTreePdf> {public:  /**   * Default constructor.   *   * Initialises the mixture with zero dimensions. This should   * generally only be used when the object is to be restored from a   * serialization. Indeed, there is no other way to resize the   * mixture to nonzero dimensionality except by subsequently   * restoring from a serialization.   */  DensityTreeMixturePdf();  /**   * Constructor. One or more components should be added with   * addComponent() after construction.   *   * @param N Dimensionality of the distribution.   */  DensityTreeMixturePdf(const unsigned int N);  /**   * Destructor.   */  virtual ~DensityTreeMixturePdf();  /**   * Not supported.   *   * @see Pdf::setDimensions()   */  virtual void setDimensions(const unsigned int N,      const bool preserve = false);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;};    }  }}#include "boost/serialization/base_object.hpp"template <class Archive>void indii::ml::aux::DensityTreeMixturePdf::serialize(Archive& ar,    const unsigned int version) {  ar & boost::serialization::base_object<      indii::ml::aux::StandardMixturePdf<indii::ml::aux::DensityTreePdf> >(      *this);}#endif

⌨️ 快捷键说明

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