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.


Field Summary
private static double DELTA
           
private  double lower
           
private  double peakpoint
           
private  double upper
           
 
Constructor Summary
LinearFuzzyNumber(double value1, double value2)
           
LinearFuzzyNumber(double value1, double value2, double peakpoint)
           
 
Method Summary
protected  double getLower()
           
 Fit getMembership(Fit f)
          Calculates the linear scaled degree of membership for the given fit.
protected  double getPeakPoint()
           
protected  double getUpper()
           
protected  boolean isEqual(double a, double b)
           
 boolean isWithinBounds(Fit f)
           
protected  void minMax(double value1, double value2)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DELTA

private static double DELTA

lower

private double lower

upper

private double upper

peakpoint

private double peakpoint
Constructor Detail

LinearFuzzyNumber

public LinearFuzzyNumber(double value1,
                         double value2)

LinearFuzzyNumber

public LinearFuzzyNumber(double value1,
                         double value2,
                         double peakpoint)
Method Detail

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