📄 description.h
字号:
#ifndef __DESCRIPTION_H_INCLUDED__#define __DESCRIPTION_H_INCLUDED__#include <stdio.h>class DESCRIPTION {public: DESCRIPTION(); DESCRIPTION(const DESCRIPTION& descript); virtual ~DESCRIPTION(); void SetNumAttr(int n); int GetNumAttr() const; void SetType(int i,int t); int GetType(int i) const; void SetNumValues(int i,int n); int GetNumValues(int i) const; void SetNumClasses(int i); int GetNumClasses() const; void operator =(const DESCRIPTION& descript); void WriteTo(FILE* stream) const; bool ReadFrom(FILE* stream);public: int num_attr; //number of attributes int* type; //This is no longer used! type of each attribute. 1:nomial;2:real int* num_values; //num_values[i] stores the number of values for attribute i. num_values[i]=0 if attribute i is real. int num_classes; //stores the index of the attribute that is the class label};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -