lengthpartitioner.hpp

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

HPP
47
字号
#ifndef INDII_ML_AUX_LENGTHPARTITIONER_HPP#define INDII_ML_AUX_LENGTHPARTITIONER_HPP#include "Partitioner.hpp"namespace indii {  namespace ml {    namespace aux {/** * Partitions a set of weighted points into two sets at the midpoint of * the widest dimension.     * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ */class LengthPartitioner : public Partitioner {public:  /**   * Destructor.   */  virtual ~LengthPartitioner();  virtual void init(Partitioner::points& p);    virtual Partitioner::Partition assign(const vector& x);private:  /**   * Index of the dimension on which to split.   */  unsigned int index;    /**   * Value along which to split.   */  double value;};     }  }}#endif

⌨️ 快捷键说明

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