コード例 #1
0
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /** This method is for debug */
 public void debug() {
   R.debug();
 }
コード例 #2
0
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /**
  * 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
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /**
  * 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
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /**
  * 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
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /**
  * This method return the number of consequents of the fuzzy model
  *
  * @return The number of consequents
  */
 int numConsequents() {
   return R.numConsequents();
 }
コード例 #6
0
ファイル: FuzzyModel.java プロジェクト: micyee/granada
 /**
  * This methos return the size of the fuzzy model
  *
  * @return The size of the fuzzy model
  */
 int size() {
   return R.size();
 }