|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jFuzzyLogic.defuzzifier.Defuzzifier net.sourceforge.jFuzzyLogic.defuzzifier.DefuzzifierContinuous
public abstract class DefuzzifierContinuous
Generic continuous defuzzifier (a defuzzifier for continuous membership functions)
Field Summary | |
---|---|
static int |
DEFAULT_NUMBER_OF_POINTS
Default number of points for 'values[]' |
(package private) double |
max
Where function ends |
(package private) double |
min
Where function begins |
(package private) double |
stepSize
Step size between each element in 'values[]' stepSize = (max - min) / values.length |
(package private) double[] |
values
Funcion values: A generic continuous function y = f(x) where x : [min, max] Values are stored in 'values[]' array. |
Fields inherited from class net.sourceforge.jFuzzyLogic.defuzzifier.Defuzzifier |
---|
discrete |
Constructor Summary | |
---|---|
DefuzzifierContinuous(Variable variable)
|
Method Summary | |
---|---|
void |
addValue(int index,
double value)
|
org.jfree.chart.JFreeChart |
chart(java.lang.String title,
boolean showIt)
Create a defuzzifier's chart |
abstract double |
defuzzify()
Deffuzification function |
double |
getArea()
Calculate function's area |
int |
getIndex(double d)
Get 'values[]' index |
int |
getLength()
|
double |
getMax()
|
double |
getMin()
|
double |
getStepSize()
|
double |
getValue(double x)
Get a value from 'values[]' using a double as index |
double |
getValue(int index)
|
double[] |
getValues()
|
private void |
init(double min,
double max,
int numberOfPoints)
Initialize |
boolean |
isDiscrete()
|
void |
reset()
Reset values (in 'values[] array) |
void |
setDiscrete(boolean discrete)
|
void |
setMax(double max)
|
void |
setMin(double min)
|
void |
setStepSize(double stepSize)
|
void |
setValue(double valueX,
double valueY)
|
void |
setValue(int index,
double value)
|
void |
setValues(double[] values)
|
Methods inherited from class net.sourceforge.jFuzzyLogic.defuzzifier.Defuzzifier |
---|
getName, toString, toStringFCL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_NUMBER_OF_POINTS
double max
double min
double stepSize
double[] values
Constructor Detail |
---|
public DefuzzifierContinuous(Variable variable)
Method Detail |
---|
public void addValue(int index, double value)
public org.jfree.chart.JFreeChart chart(java.lang.String title, boolean showIt)
chart
in class Defuzzifier
title
- : Title to show (if null => show membership function name)showIt
- : If true, plot is displayedpublic abstract double defuzzify()
defuzzify
in class Defuzzifier
public double getArea()
public int getIndex(double d)
public int getLength()
public double getMax()
public double getMin()
public double getStepSize()
public double getValue(double x)
public double getValue(int index)
public double[] getValues()
private void init(double min, double max, int numberOfPoints)
min
- : Minimummax
- : MaximumnumberOfPoints
- public boolean isDiscrete()
isDiscrete
in class Defuzzifier
public void reset()
reset
in class Defuzzifier
public void setDiscrete(boolean discrete)
setDiscrete
in class Defuzzifier
public void setMax(double max)
public void setMin(double min)
public void setStepSize(double stepSize)
public void setValue(double valueX, double valueY)
public void setValue(int index, double value)
public void setValues(double[] values)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |