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

📄 partitioner.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_AUX_PARTITIONER_HPP#define INDII_ML_AUX_PARTITIONER_HPP#include "DiracMixturePdf.hpp"namespace indii {  namespace ml {    namespace aux {/** * Partitions a set of weighted points into two sets for constructing a * partition tree.     * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ */class Partitioner {public:  /**   * Partitions.   */  enum Partition {    LEFT,    RIGHT  };  /**   * Weighted sample subset.   */  typedef std::vector<DiracMixturePdf::weighted_component*> points;  /**   * Destructor.   */  virtual ~Partitioner();  /**   * Initialise the partitioner.   *   * @param xws Weighted sample subset of at least two samples.   *   * Initialises the partitioner after construction, optionally using   * the given weighted sample set as a basis for the partition (e.g.   * using its bounds or covariance).   */  virtual void init(points& xws) = 0;    /**   * Assign a sample to a partition.   *   * @param x The sample to assign.   *   * @return The partition to which the sample is assigned.   */  virtual Partition assign(const aux::vector& x) = 0;};     }  }}#endif

⌨️ 快捷键说明

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