Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
FuzzyController.h
00001 #ifndef FC_H 00002 #define FC_H 00003 00004 #pragma once 00005 00006 #include "FuzzyIO.h" 00007 00008 class FuzzyController 00009 { 00010 public: 00011 FuzzyController(void); 00012 ~FuzzyController(void); 00013 00014 void addInput(FuzzyIO* input); 00015 void addOutput(FuzzyIO* output); 00016 void addRules(int rulesAmount, int** mfsIndexs); 00017 00018 float* compute(float* values); 00019 00020 private: 00021 FuzzyIO** inputs; 00022 FuzzyIO** outputs; 00023 00024 int inputsLenght; 00025 int outputsLenght; 00026 00027 int rulesAmount; 00028 int** mfsIndexs; 00029 00030 float* outputsValues; 00031 float* inputsValues; 00032 00033 float* num; 00034 float* den; 00035 00036 float min(float* values); 00037 float max(float* values); 00038 }; 00039 00040 #endif
Generated on Tue Jul 19 2022 01:26:58 by
1.7.2