net.groboclown.util.math.fuzzylogic.v1
Class LinearFuzzyNumber
java.lang.Object
|
+--net.groboclown.util.math.fuzzylogic.v1.LinearFuzzyNumber
- All Implemented Interfaces:
- IFuzzyNumber
- public class LinearFuzzyNumber
- extends Object
- implements IFuzzyNumber
Corresponds to a range of Fit values. Note that a Fit range may be
out of the standard fit boundaries.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DELTA
private static double DELTA
lower
private double lower
upper
private double upper
peakpoint
private double peakpoint
LinearFuzzyNumber
public LinearFuzzyNumber(double value1,
double value2)
LinearFuzzyNumber
public LinearFuzzyNumber(double value1,
double value2,
double peakpoint)
isWithinBounds
public boolean isWithinBounds(Fit f)
- Specified by:
isWithinBounds
in interface IFuzzyNumber
- Following copied from interface:
net.groboclown.util.math.fuzzylogic.v1.IFuzzyNumber
- Returns:
- true if the given Fit value is within the current
instance's non-zero bounds, or false if it is not.
getMembership
public Fit getMembership(Fit f)
- Calculates the linear scaled degree of membership for the given fit.
- Specified by:
getMembership
in interface IFuzzyNumber
isEqual
protected boolean isEqual(double a,
double b)
minMax
protected void minMax(double value1,
double value2)
getLower
protected final double getLower()
getUpper
protected final double getUpper()
getPeakPoint
protected final double getPeakPoint()
Written under the LGPL