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