com.hrstc.fuzzy
Class FISGenerator

java.lang.Object
  extended by com.hrstc.fuzzy.FISGenerator

public class FISGenerator
extends java.lang.Object

Generats mfs for the functions with high mf count

Author:
Neil O. Rouben

Constructor Summary
FISGenerator()
          Creates a new instance of FISGenerator
 
Method Summary
 java.lang.String generateMFs(java.lang.String filePath, java.lang.String countStr)
          Used to generate mfs for the functions with high mf count
 java.lang.String generateRules()
          [Rules] 0 1 1 0 0 0 0 0 0 0, 1 (0.33) : 1 0 0 0 1 1 0 0 0 0 0, 1 (0.33) : 1 0 0 0 0 0 1 1 0 0 0, 1 (0.33) : 1 0 -1 -1 0 0 0 0 0 0 0, -1 (0.33) : 1 0 0 0 -1 -1 0 0 0 0 0, -1 (0.33) : 1 0 0 0 0 0 -1 -1 0 0 0, -1 (0.33) : 1 0 0 0 0 0 0 0 1 1 0, 1 (0.33) : 1 0 0 0 0 0 0 0 -1 -1 0, -1 (0.33) : 1 0 0 0 0 0 0 0 0 0 1, 1 (0.05) : 1 0 0 0 0 0 0 0 0 0 -1, -1 (0.05) : 1
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FISGenerator

public FISGenerator()
Creates a new instance of FISGenerator

Method Detail

generateMFs

public java.lang.String generateMFs(java.lang.String filePath,
                                    java.lang.String countStr)
                             throws java.io.IOException
Used to generate mfs for the functions with high mf count

Parameters:
filePath - - path to the file with and tags that need to be replaced
count - - number of times to perform substitution [Input2] Name='tf1' Range=[0 1] NumMFs=1 MF1='high':'trimf',[0 1 2] [Input3] Name='idf1' Range=[0 1] NumMFs=1 MF1='high':'trimf',[0 1 1] --------------------------------------- [Input] Name='tf' Range=[0 1] NumMFs=1 MF1='high':'trimf',[0 1 2] [Input] Name='idf' Range=[0 1] NumMFs=1 MF1='high':'trimf',[0 1 1]
Throws:
java.io.IOException

generateRules

public java.lang.String generateRules()
[Rules] 0 1 1 0 0 0 0 0 0 0, 1 (0.33) : 1 0 0 0 1 1 0 0 0 0 0, 1 (0.33) : 1 0 0 0 0 0 1 1 0 0 0, 1 (0.33) : 1 0 -1 -1 0 0 0 0 0 0 0, -1 (0.33) : 1 0 0 0 -1 -1 0 0 0 0 0, -1 (0.33) : 1 0 0 0 0 0 -1 -1 0 0 0, -1 (0.33) : 1 0 0 0 0 0 0 0 1 1 0, 1 (0.33) : 1 0 0 0 0 0 0 0 -1 -1 0, -1 (0.33) : 1 0 0 0 0 0 0 0 0 0 1, 1 (0.05) : 1 0 0 0 0 0 0 0 0 0 -1, -1 (0.05) : 1


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Parameters:
args - the command line arguments
Throws:
java.io.IOException