📄 variancepartitioner.hpp
字号:
#ifndef INDII_ML_AUX_VARIANCEPARTITIONER_HPP#define INDII_ML_AUX_VARIANCEPARTITIONER_HPP#include "Partitioner.hpp"namespace indii { namespace ml { namespace aux {/** * Partitions a set of weighted points into two sets at the mean of the * dimension with greatest variance. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ */class VariancePartitioner : public Partitioner {public: /** * Destructor. */ virtual ~VariancePartitioner(); virtual void init(Partitioner::points& xws); 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 + -