src/fuzzyrule.cpp

Go to the documentation of this file.
00001 #include "fuzzyrule.h"
00002 #include <stdlib.h>
00003 
00004 fuzzyrule::fuzzyrule()
00005 {
00006         inputs=0;
00007         output=-1;
00008         outputgroup=0;
00009         input=NULL;
00010 }
00011 fuzzyrule::fuzzyrule(int inputs1)
00012 {
00013         inputs=inputs1;
00014         output=-1;
00015         outputgroup=0;
00016         input=(int *)malloc(inputs*sizeof(int));
00017 
00018         int i;
00019         for(i=0;i<inputs;i++) input[i]=-1;
00020 }
00021 fuzzyrule::~fuzzyrule()
00022 {
00023         if(input!=NULL) free(input);
00024 }
00025 void fuzzyrule::setinput(int input1,int mf)
00026 {
00027         input[input1]=mf;
00028 }
00029 void fuzzyrule::setoutputgroup(int outputgroup1)
00030 {
00031         outputgroup=outputgroup1;
00032 }
00033 void fuzzyrule::setoutput(int mf)
00034 {
00035         output=mf;
00036 }

Generated on Thu Apr 26 22:45:27 2007 for GangOfSix(GOS)-RoboCupTeamProject by  doxygen 1.5.1-p1