Package fis
Class JFIS
- java.lang.Object
-
- fis.JFIS
-
public class JFIS extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddFISListener(fis.FISListener listener)voidAddInput(JInput input)voidAddOutput(JOutput output)voidAddRule(JRule rule)intAgregationImpliResult(int output_number, Vector<Double> result)double[][]AgregationResult(int output_number)voidClose()intConj2Imp(int output_number, boolean transfPart)voidCrisp2Fuz(String defuz, int output_number)voidDelete()voidFuz2Crisp(int output_number)JInputGetActiveInput(int active_number)intGetActiveInputNumber(int active_number)JOutputGetActiveOutput(int active_number)intGetActiveOutputNumber(int active_number)intGetBuildFuzIn(int input_number, double[] kw, double[] sw, double[] inputs_values, Vector<Double> fuzval)double[]GetClassesLabels(int output_number)intGetConjunction()intGetImpliConc(int output_number, int rule_number, Vector<Double> result)JInputGetInput(int input_number)JInput[]GetInputs()JSemaphoreGetInputSemaphore(int input_number)StringGetName()JOutputGetOutput(int output_number)JOutput[]GetOutputs()JSemaphoreGetOutputSemaphore(int output_number)longgetPtr()JRuleGetRule(int rule_number)double[]getRulesWeight(double[] input_values)booleanhasExpertWeights()booleanhasImplicativeOutput()voidImp2Conj(int output_number, boolean transfPart)voidInfer(double[] values)double[]Infer(int output_number, String data_file, String result_file, double blank_thres, boolean display)double[][]Infer2DSurface(SurfacePlotParameters Parameters)Object[]Infer3DSurface(SurfacePlotParameters Parameters)double[]InferErrorRegression()voidInferFuzzyInput(double[] kw, double[] sw, int nbAlphaCut, double[] values)voidInitClasses(String data_file)voidInitPossibles()voidInputActiveChanged(int input_number)voidInputNameChanged(int input_number)voidInputRangeChanged(int input_number)voidLinks(JExtendedDataFile data, double threshold, boolean sort, String file_prefix, LinksItemsRules items_rules)voidMFAddedInInput(int input_number)voidMFAddedInOutput(int output_number)voidMFReplacedInInput(int input_number)voidMFReplacedInOutput(int output_number)booleanModified()intNbActiveInputs()intNbActiveOutputs()intNbActiveRules()intNbInputs()intNbOutputs()intNbRules()protected JFISNewCustomFISOPT(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)protected longNewFISFPA(JExtendedDataFile data, int strategy, int min_card, double min_deg)static JFISNewFISOLS(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)protected JFISNewFISOPT(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)protected JFISNewFISSIMPLE(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)protected longNewGENFIS(JExtendedDataFile data, boolean sort, double thres)JRuleNewRule(boolean active, int[] facteurs, double[] actions)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)voidOutputActiveChanged(int output_number)voidOutputNameChanged(int output_number)voidOutputRangeChanged(int output_number)voidoutputVocabularyReduction(JExtendedDataFile data, int outputNumber, double blankThreshold, double degradationAllowed, double numberOfConc, boolean useRuleConc)voidRemoveFISListener(fis.FISListener listener)voidRemoveInput(int input_number)voidRemoveMFInInput(int input_number, int mf_number)voidRemoveMFInOutput(int output_number, int mf_number)voidRemoveOutput(int output_number)voidRemoveRule(int rule_number)voidReplaceInput(int input_number, JInput new_input)voidReplaceOutput(int output_number, JOutput new_output)voidReplaceRules(JRule[] new_rules)voidSave()voidSave(String FISFile)voidSetAlarmThres(int output_number, double default_value)voidSetConjunction(int index)voidSetName(String name)voidSetOutputClassif(int output_number, boolean classif)voidSetOutputDefaultValue(int output_number, double default_value)voidSetOutputDefuz(int output_number, String defuz)voidSetOutputDisjunction(int output_number, String disj)voidSetOutputImpliFuzzy(int output_number, boolean impli)voidSetRuleActive(int rule_number, boolean active)voidSetRuleConc(int rule_number, int output_number, double conc)voidSetRuleExpertWeight(int rule_number, double weight)voidSetRuleProp(int rule_number, int input_number, int prop)double[]SortiesObtenues()static String[]TypeConjunction()static String[]TypeMissingValues()
-
-
-
Method Detail
-
getPtr
public long getPtr()
-
NewFISFPA
protected long NewFISFPA(JExtendedDataFile data, int strategy, int min_card, double min_deg) throws Throwable
- Throws:
Throwable
-
NewGENFIS
protected long NewGENFIS(JExtendedDataFile data, boolean sort, double thres) throws Throwable
- Throws:
Throwable
-
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
-
Links
public void Links(JExtendedDataFile data, double threshold, boolean sort, String file_prefix, LinksItemsRules items_rules) throws Throwable
- Throws:
Throwable
-
Delete
public void Delete()
-
GetActiveOutput
public JOutput GetActiveOutput(int active_number) 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
-
ReplaceInput
public void ReplaceInput(int input_number, JInput new_input) throws Throwable- Throws:
Throwable
-
ReplaceOutput
public void ReplaceOutput(int output_number, JOutput new_output) throws Throwable- Throws:
Throwable
-
NewRule
public JRule NewRule(boolean active, int[] facteurs, double[] actions) throws Throwable
- Throws:
Throwable
-
InferFuzzyInput
public void InferFuzzyInput(double[] kw, double[] sw, int nbAlphaCut, double[] values) throws Throwable- Throws:
Throwable
-
Infer3DSurface
public Object[] Infer3DSurface(SurfacePlotParameters Parameters) throws Throwable
- Throws:
Throwable
-
getRulesWeight
public double[] getRulesWeight(double[] input_values) throws Throwable- Throws:
Throwable
-
Infer2DSurface
public double[][] Infer2DSurface(SurfacePlotParameters Parameters) 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
-
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)
-
SetOutputDefuz
public void SetOutputDefuz(int output_number, String defuz) throws Throwable- Throws:
Throwable
-
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
-
Crisp2Fuz
public void Crisp2Fuz(String defuz, 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
-
AgregationImpliResult
public int AgregationImpliResult(int output_number, Vector<Double> result) throws Throwable- Throws:
Throwable
-
GetImpliConc
public int GetImpliConc(int output_number, int rule_number, Vector<Double> result) throws Throwable- Throws:
Throwable
-
-