Beispiel #1
0
 public FAM(FuzzyVariable row, FuzzyVariable column, string[,] actions)
 {
     list_ = new List <List <ValueTuple <float, string> > >(row.StatesCount);
     for (int i = 0; i < row.StatesCount; ++i)
     {
         list_.Add(new List <ValueTuple <float, string> >(column.StatesCount));
         for (int j = 0; j < column.StatesCount; ++j)
         {
             column.Fuzzify(j);
             row.Fuzzify(i);
             list_[i].Add((FuzzyVariable.And(row.FuzzyValue, column.FuzzyValue), actions[i, j]));
         }
     }
 }