partitioner.hpp

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

HPP
65
字号
#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 + =
减小字号Ctrl + -
显示快捷键?