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

📄 node.h

📁 c4.5决策树的实现,应用于一个医学诊断
💻 H
字号:
#include <iostream.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <fstream.h>


class Node{  //树结点类
private:
	double value;
    int attribute;	//属性的数字编号,如果是叶节点,则存放类别的编号
	int isLeaf;		//是否为叶节点
	//int depth;
	Node*leftchild;		
	Node*rightchild;
	friend class DecisonTree;
public:
	Node();
	Node(double value,int attribute,bool isLeaf = false);
    void SetValue(double value);
	double GetValue();
    void SetAttribute(int attribute);
	int GetAttribute();
	void SetLeaf(bool isLeaf);
	int IsLeaf();
}

⌨️ 快捷键说明

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