Esempio n. 1
0
 /** This method is for debug */
 public void debug() {
   R.debug();
 }
Esempio n. 2
0
 /**
  * This method defuzzified the output and return a value
  *
  * @param x The output
  * @return
  */
 public double output(double[] x) {
   return R.defuzzify(R.output(x), defuzType);
 }
Esempio n. 3
0
 /**
  * This method assign the values of the fuzzy rule to another one
  *
  * @param i The position of the rule
  * @param b A fuzzy rule
  */
 void setComponent(int i, FuzzyRule b) {
   R.setComponent(i, b.clone());
 }
Esempio n. 4
0
 /**
  * This method obtain the consequent and the weight of the rule
  *
  * @param n The position of the rule
  * @return
  */
 FuzzyRule getComponent(int n) {
   return R.getComponent(n);
 }
Esempio n. 5
0
 /**
  * This method return the number of consequents of the fuzzy model
  *
  * @return The number of consequents
  */
 int numConsequents() {
   return R.numConsequents();
 }
Esempio n. 6
0
 /**
  * This methos return the size of the fuzzy model
  *
  * @return The size of the fuzzy model
  */
 int size() {
   return R.size();
 }