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

📄 randompartitioner.hpp

📁 dysii是一款非常出色的滤波函数库
💻 HPP
字号:
#ifndef INDII_ML_AUX_RANDOMPARTITIONER_HPP#define INDII_ML_AUX_RANDOMPARTITIONER_HPP#include "Partitioner.hpp"namespace indii {  namespace ml {    namespace aux {/** * Partitions a set of weighted samples into two sets along the midpoint of * a random dimension. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ */class RandomPartitioner : public Partitioner {public:  /**   * Destructor.   */  virtual ~RandomPartitioner();  virtual void init(Partitioner::points& p);    virtual Partitioner::Partition assign(const aux::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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -