mirror of
https://github.com/marcin-szczepanski/jFuzzyLogic.git
synced 2024-12-21 09:10:28 +01:00
Nev version + fix CPP
This commit is contained in:
parent
ca8c232cdb
commit
5783f490a4
html/fcl
out/artifacts/jFuzzyLogic_jar
src/main
java
META-INF
net/sourceforge/jFuzzyLogic
resources/META-INF
@ -84,7 +84,7 @@ void FunctionBlock_tipper::calc_No1() {
|
||||
double x = 0.0 + i * 0.03;
|
||||
double membership = membership_tip_cheap(x);
|
||||
double y = ruleActivationMethod_min( degreeOfSupport_1 , membership );
|
||||
defuzzify_tip[i] += ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
defuzzify_tip[i] = ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ void FunctionBlock_tipper::calc_No1() {
|
||||
double x = 0.0 + i * 0.03;
|
||||
double membership = membership_tip_average(x);
|
||||
double y = ruleActivationMethod_min( degreeOfSupport_2 , membership );
|
||||
defuzzify_tip[i] += ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
defuzzify_tip[i] = ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
}
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ void FunctionBlock_tipper::calc_No1() {
|
||||
double x = 0.0 + i * 0.03;
|
||||
double membership = membership_tip_generous(x);
|
||||
double y = ruleActivationMethod_min( degreeOfSupport_3 , membership );
|
||||
defuzzify_tip[i] += ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
defuzzify_tip[i] = ruleAccumulationMethod_max( defuzzify_tip[i], y );
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
out/artifacts/jFuzzyLogic_jar/jFuzzyLogic.jar
Normal file
BIN
out/artifacts/jFuzzyLogic_jar/jFuzzyLogic.jar
Normal file
Binary file not shown.
3
src/main/java/META-INF/MANIFEST.MF
Normal file
3
src/main/java/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: net.sourceforge.jFuzzyLogic.JFuzzyLogic
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.sourceforge.jFuzzyLogic;
|
||||
|
||||
import net.sourceforge.jFuzzyLogic.ruleConnectionMethod.Szczepanski;
|
||||
import org.antlr.runtime.RecognitionException;
|
||||
|
||||
import net.sourceforge.jFuzzyLogic.demo.tipper.TipperAnimation;
|
||||
@ -20,10 +21,10 @@ public class JFuzzyLogic {
|
||||
// Version info
|
||||
public static final String SOFTWARE_NAME = "JFuzzyLogic";
|
||||
public static final String REVISION = "";
|
||||
public static final String BUILD = "2015-04-09";
|
||||
public static final String VERSION_MAJOR = "3.3";
|
||||
public static final String BUILD = "2022-05-12";
|
||||
public static final String VERSION_MAJOR = "4.0";
|
||||
public static final String VERSION_SHORT = VERSION_MAJOR + REVISION;
|
||||
public static final String VERSION_NO_NAME = VERSION_SHORT + " (build " + BUILD + "), by " + Pcingola.BY;
|
||||
public static final String VERSION_NO_NAME = VERSION_SHORT + " (build " + BUILD + "), by " + Pcingola.BY + " and " + Szczepanski.BY;
|
||||
public static final String VERSION = SOFTWARE_NAME + " " + VERSION_NO_NAME;
|
||||
|
||||
public static boolean debug = false;
|
||||
|
@ -148,7 +148,7 @@ public abstract class RuleActivationMethod extends FclObject {
|
||||
out.append("\t\t\tdouble y = " + toStringCpp() + "( " + degreeOfSupportName + " , membership );\n");
|
||||
|
||||
// Aggregate value
|
||||
out.append("\t\t\t" + variable.toStringCppDefuzzifyVarName() + "[i] += " + ruleAccumulationMethod.toStringCpp() + "( " + variable.toStringCppDefuzzifyVarName() + "[i], y );\n");
|
||||
out.append("\t\t\t" + variable.toStringCppDefuzzifyVarName() + "[i] = " + ruleAccumulationMethod.toStringCpp() + "( " + variable.toStringCppDefuzzifyVarName() + "[i], y );\n");
|
||||
out.append("\t\t}\n");
|
||||
out.append("\t}\n");
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package net.sourceforge.jFuzzyLogic.ruleConnectionMethod;
|
||||
|
||||
/**
|
||||
* Author's data
|
||||
* @author marcin-szczepanski
|
||||
*/
|
||||
public class Szczepanski {
|
||||
|
||||
public static final String EMAIL = "marcin.szczepanski@amu.edu.pl";
|
||||
public static final String BY = "Marcin Szczepanski";
|
||||
}
|
3
src/main/resources/META-INF/MANIFEST.MF
Normal file
3
src/main/resources/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: net.sourceforge.jFuzzyLogic.JFuzzyLogic
|
||||
|
Loading…
Reference in New Issue
Block a user