iris.h
来自「贝叶斯分类程序,iris数据集,很有用,已测试」· C头文件 代码 · 共 48 行
H
48 行
#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 + =
减小字号Ctrl + -
显示快捷键?