/* * DefuzzifictionResult.java * * Created on July 10, 2002, 5:48 PM */ package uk.ac.leeds.ccg.projects.MedAction.FuzzyInference; /** * when we put a input x value into the fuzzy variable defined for this input variable, * we will get a set of member degree for those fuzzy members in this fuzzy varaible. * the process is called fuzzification. FuzzificationResult is just a neat way to * store all the fuzzification result. it only has member fuzzy set names and variable name * the degrees for all sets. * @author jianhui jin */ public class FuzzificationResult { Object[][] memberNameAndDegree = new Object[2][2]; String[] memberName=null; Double[] memberDegree=null; String variableName=null; /** Creates a new instance of DefuzzifictionResult */ public FuzzificationResult(Object[][] memberNameAndDegree, String variableName) { this.memberNameAndDegree=memberNameAndDegree; this.variableName=variableName; memberName=new String[memberNameAndDegree.length]; memberDegree=new Double[memberNameAndDegree.length]; for(int i=0;i