public void defuzz(String [] params){
        if(params.length!=fuzzyEngine.getLinguisticVariableCollection().size()){
            System.out.println("--Invalid params--\n");
            return;
        }
        if(!linguisticVariableCollectionCheck()){
            return;
        }
        if(!rulesCheck()){
            return;
        }
        if(this.fuzzyEngine.getConsequent()==null || this.fuzzyEngine.getConsequent().length()==0)
        {
            System.out.println("Output var not set");
            return;
        }
        try{
            for (int i=1;i<params.length;i++){
                String [] token = params[i].split("=");
                if(token.length!=2){
                    System.out.println("--Invalid params--\n");
                    return;
                }
                fuzzyEngine.getLinguisticVariableCollection().Find(token[0]).setInputValue(Double.parseDouble(token[1]));
            }
            System.out.println(fuzzyEngine.Defuzzify());
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }