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

📄 iris.h

📁 贝叶斯分类程序,iris数据集,很有用,已测试
💻 H
字号:
#ifndef IRIS_H
#define IRIS_H

#include <stdlib.h>

#define      CLASSTYPENUM      3
#define      ATTRIBUTENUM      4

#define      IRIS_SETOSA       0
#define      IRIS_VERSICOLOR   1
#define      IRIS_VERGINICA    2 

typedef 
struct Iris
{
	double iris_attribute[ATTRIBUTENUM];
	//setal_length   0;
	//setal_width    1;

	//petal_length   2;
	//petal_width    3;
	char iris_class[15];
}
Iris;

typedef 
struct EstimationMean
{
	double mean_estimation[ATTRIBUTENUM];
} 
EstimationMean;

typedef
struct EstimationCovariance
{
	double covariance_estimation[ATTRIBUTENUM][ATTRIBUTENUM];
}
EstimationCovariance;

typedef
struct IrisList
{
	Iris iris;
	struct IrisList *next;
}
IrisList;

#endif

⌨️ 快捷键说明

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