انجمن سایت کلیدستان


رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
مشکل در برنامه C

مشکل در برنامه C

#2
یه کد برای نوشتن قوانین پیدا کردم اما ازش سر در نمی آرم Confused

کد:
struct rule_element_type{
  int *value;                /* pointer to antecedent/output strength value */
  struct rule_element_type *next; /* next antecedent/output element in rule */
  };
struct rule_type{
  struct rule_element_type *if_side;     /* list of antecedents in rule */
  struct rule_element_type *then_side;   /* list of outputs in rule     */
  struct rule_type *next;                /* next rule in rule base  */
  };
struct rule_type *Rule_Base;             /* list of all rules in rule base */

و این


کد:
structfuzzy_rule
{
struct MF_lable *input1;
struct MF_lable *output;
float f;
};
struct fuzzy_rule R[Num_rules];
For example, rule1 “If error is NEG then firing angle is Z” can be defined as follows-
R[1].input1=&NEG;
R[1].output=&Z;
R[1].f=0; //initializing
پاسخ


پیام‌های این موضوع
مشکل در برنامه C - توسط zahra - ۱۳۹۲/۰۵/۰۲, ۰۷:۱۰ ق.ظ
RE: مشکل در برنامه C - توسط zahra - ۱۳۹۲/۰۵/۰۲, ۰۷:۱۲ ق.ظ
RE: مشکل در برنامه C - توسط admin - ۱۳۹۲/۰۵/۰۳, ۰۸:۰۲ ب.ظ

پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان