Package fis

Class JFIS


  • public class JFIS
    extends Object
    • Method Detail

      • getPtr

        public long getPtr()
      • NewFISSIMPLE

        protected JFIS NewFISSIMPLE​(JExtendedDataFile data,
                                    String resultFile,
                                    double homogeneity_threshold,
                                    double loss_performance,
                                    int output_number,
                                    double min_matching_degree,
                                    double loss_coverage,
                                    double coverage_min,
                                    boolean keep_last,
                                    double max_err,
                                    boolean ruleRemoval,
                                    boolean variableRemoval,
                                    String validationFile)
                             throws Throwable
        Throws:
        Throwable
      • NewFISOLS

        public static JFIS NewFISOLS​(JFIS fis,
                                     JExtendedDataFile data,
                                     int outputNumber,
                                     boolean keepExistingRules,
                                     double standardDeviation,
                                     String conjunction,
                                     double totalUnexplainedVariance,
                                     double maximumNumberOfRules,
                                     boolean reduceVocabulary,
                                     double degradationAllowed,
                                     double numberOfConc,
                                     boolean useRuleConc,
                                     boolean outputFuzzification,
                                     boolean removeTemporaryFiles,
                                     String testDataFile)
                              throws Throwable
        Throws:
        Throwable
      • outputVocabularyReduction

        public void outputVocabularyReduction​(JExtendedDataFile data,
                                              int outputNumber,
                                              double blankThreshold,
                                              double degradationAllowed,
                                              double numberOfConc,
                                              boolean useRuleConc)
                                       throws Throwable
        Throws:
        Throwable
      • NewCustomFISOPT

        protected JFIS NewCustomFISOPT​(JExtendedDataFile data,
                                       String key,
                                       int iterations,
                                       double std_gauss,
                                       int constraints,
                                       int fails,
                                       double center_thres,
                                       int output_number,
                                       boolean without_redondancy,
                                       int seed_value,
                                       double sw1,
                                       double sw2,
                                       double sw3,
                                       int cardinal_vocabulary,
                                       double mu_thres,
                                       double loss_coverage)
                                throws Throwable
        Throws:
        Throwable
      • NewFISOPT

        protected JFIS NewFISOPT​(JExtendedDataFile data,
                                 String optimization_order,
                                 boolean output,
                                 boolean rules,
                                 int number_of_loops,
                                 double loss_coverage,
                                 int iterations,
                                 double std_gauss,
                                 int constraints,
                                 int fails,
                                 int output_number,
                                 int seed_value,
                                 double sw1,
                                 double sw2,
                                 double sw3,
                                 double mu_thres,
                                 CrossValidation crossValidation,
                                 double minBetweenMF)
                          throws Throwable
        Throws:
        Throwable
      • NewTreeFIS

        protected JFIS[] NewTreeFIS​(JExtendedDataFile data,
                                    String tree_file,
                                    String valid_file,
                                    String resultFistreeFile,
                                    String perfFistreeFile,
                                    int maxtreedepth,
                                    double min_ed_gain,
                                    double min_significant,
                                    int min_leaf_card,
                                    double ambiguity_thres,
                                    int outputNumber,
                                    boolean prune,
                                    boolean split,
                                    double relperfloss,
                                    boolean relgain,
                                    boolean display,
                                    double covThresh)
                             throws Throwable
        Throws:
        Throwable
      • Delete

        public void Delete()
      • SetConjunction

        public void SetConjunction​(int index)
                            throws Throwable
        Throws:
        Throwable
      • GetBuildFuzIn

        public int GetBuildFuzIn​(int input_number,
                                 double[] kw,
                                 double[] sw,
                                 double[] inputs_values,
                                 Vector<Double> fuzval)
                          throws Throwable
        Throws:
        Throwable
      • RemoveInput

        public void RemoveInput​(int input_number)
                         throws Throwable
        Throws:
        Throwable
      • RemoveOutput

        public void RemoveOutput​(int output_number)
                          throws Throwable
        Throws:
        Throwable
      • NewRule

        public JRule NewRule​(boolean active,
                             int[] facteurs,
                             double[] actions)
                      throws Throwable
        Throws:
        Throwable
      • RemoveRule

        public void RemoveRule​(int rule_number)
                        throws Throwable
        Throws:
        Throwable
      • InferFuzzyInput

        public void InferFuzzyInput​(double[] kw,
                                    double[] sw,
                                    int nbAlphaCut,
                                    double[] values)
                             throws Throwable
        Throws:
        Throwable
      • getRulesWeight

        public double[] getRulesWeight​(double[] input_values)
                                throws Throwable
        Throws:
        Throwable
      • Infer

        public double[] Infer​(int output_number,
                              String data_file,
                              String result_file,
                              double blank_thres,
                              boolean display)
                       throws Throwable
        Throws:
        Throwable
      • InferErrorRegression

        public double[] InferErrorRegression()
                                      throws Throwable
        Throws:
        Throwable
      • GetInputSemaphore

        public JSemaphore GetInputSemaphore​(int input_number)
      • GetOutputSemaphore

        public JSemaphore GetOutputSemaphore​(int output_number)
      • AddFISListener

        public void AddFISListener​(fis.FISListener listener)
      • RemoveFISListener

        public void RemoveFISListener​(fis.FISListener listener)
      • Close

        public void Close()
      • InputActiveChanged

        public void InputActiveChanged​(int input_number)
      • OutputActiveChanged

        public void OutputActiveChanged​(int output_number)
      • InputNameChanged

        public void InputNameChanged​(int input_number)
      • OutputNameChanged

        public void OutputNameChanged​(int output_number)
      • InputRangeChanged

        public void InputRangeChanged​(int input_number)
      • OutputRangeChanged

        public void OutputRangeChanged​(int output_number)
      • RemoveMFInInput

        public void RemoveMFInInput​(int input_number,
                                    int mf_number)
                             throws Throwable
        Throws:
        Throwable
      • RemoveMFInOutput

        public void RemoveMFInOutput​(int output_number,
                                     int mf_number)
                              throws Throwable
        Throws:
        Throwable
      • MFAddedInInput

        public void MFAddedInInput​(int input_number)
      • MFAddedInOutput

        public void MFAddedInOutput​(int output_number)
      • MFReplacedInInput

        public void MFReplacedInInput​(int input_number)
      • MFReplacedInOutput

        public void MFReplacedInOutput​(int output_number)
      • SetOutputDisjunction

        public void SetOutputDisjunction​(int output_number,
                                         String disj)
                                  throws Throwable
        Throws:
        Throwable
      • SetOutputClassif

        public void SetOutputClassif​(int output_number,
                                     boolean classif)
                              throws Throwable
        Throws:
        Throwable
      • SetOutputImpliFuzzy

        public void SetOutputImpliFuzzy​(int output_number,
                                        boolean impli)
                                 throws Throwable
        Throws:
        Throwable
      • SetOutputDefaultValue

        public void SetOutputDefaultValue​(int output_number,
                                          double default_value)
                                   throws Throwable
        Throws:
        Throwable
      • SetAlarmThres

        public void SetAlarmThres​(int output_number,
                                  double default_value)
                           throws Throwable
        Throws:
        Throwable
      • GetClassesLabels

        public double[] GetClassesLabels​(int output_number)
                                  throws Throwable
        Throws:
        Throwable
      • Fuz2Crisp

        public void Fuz2Crisp​(int output_number)
                       throws Throwable
        Throws:
        Throwable
      • Conj2Imp

        public int Conj2Imp​(int output_number,
                            boolean transfPart)
                     throws Throwable
        Throws:
        Throwable
      • Imp2Conj

        public void Imp2Conj​(int output_number,
                             boolean transfPart)
                      throws Throwable
        Throws:
        Throwable
      • SetRuleActive

        public void SetRuleActive​(int rule_number,
                                  boolean active)
                           throws Throwable
        Throws:
        Throwable
      • SetRuleExpertWeight

        public void SetRuleExpertWeight​(int rule_number,
                                        double weight)
                                 throws Throwable
        Throws:
        Throwable
      • SetRuleProp

        public void SetRuleProp​(int rule_number,
                                int input_number,
                                int prop)
                         throws Throwable
        Throws:
        Throwable
      • SetRuleConc

        public void SetRuleConc​(int rule_number,
                                int output_number,
                                double conc)
                         throws Throwable
        Throws:
        Throwable
      • GetActiveInputNumber

        public int GetActiveInputNumber​(int active_number)
                                 throws Throwable
        Throws:
        Throwable
      • GetActiveOutputNumber

        public int GetActiveOutputNumber​(int active_number)
                                  throws Throwable
        Throws:
        Throwable
      • AgregationResult

        public double[][] AgregationResult​(int output_number)
                                    throws Throwable
        Throws:
        Throwable
      • hasImplicativeOutput

        public boolean hasImplicativeOutput()
                                     throws Throwable
        Throws:
        Throwable