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

📄 fuzzy.h

📁 用C51编的温度控制的PID算法适用性强方便移植
💻 H
字号:
/*
	Application name:       FUzzy Development and Generation Environment (FUDGE) Version V1.00
	File name:                      Fuzzy.h
	Written by:                     Alex DeCastro & Jason Spielman

	Copyright Motorola 1994
*/

#define TRACE          0      /*set to display fuzzy parameters */
#define NO_RULES       0      /*set to display inputs when no rules fire*/
#define MIN(A,B)       (A < B) ? A : B
#define MAX(A,B)       (A > B) ? A : B

struct In {
	float           min;
	float           max;
};
struct Out {
	float           min;
	float           max;
};
struct Rule {
	int             antecedent[8];
	int             consequent[8];
};

float           fuzzy_inputs[8][8];
float           fuzzy_outputs[4][8];
float           rule_strengths[64];

void    fuzzy_step(float *, float *);
void    fuzzify_input(int, float);
float   get_membership_value(int, int, float);
void    eval_rule(int);
float   defuzzify_output(int, float *);

⌨️ 快捷键说明

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