예제 #1
0
 /** This method is for debug */
 public void debug() {
   R.debug();
 }
예제 #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);
 }
예제 #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());
 }
예제 #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);
 }
예제 #5
0
 /**
  * This method return the number of consequents of the fuzzy model
  *
  * @return The number of consequents
  */
 int numConsequents() {
   return R.numConsequents();
 }
예제 #6
0
 /**
  * This methos return the size of the fuzzy model
  *
  * @return The size of the fuzzy model
  */
 int size() {
   return R.size();
 }