Package be.cylab.mark.detection
Class FuzzyLogic
- java.lang.Object
-
- be.cylab.mark.detection.FuzzyLogic
-
public final class FuzzyLogic extends Object
Implements fuzzy logic membership function. Compute f(x) = a * x + b from two points (x1, y1) and (x2, y2).- Author:
- Georgi Nikolov
-
-
Constructor Summary
Constructors Constructor Description FuzzyLogic(double x1, double x2, double y1, double y2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
determineMembership(double value)
Compute the membership functions given two points.double
fuzzyAnd(double[] values)
Method for determining the min() of an array of values.double
fuzzyOr(double[] values)
-
-
-
Method Detail
-
determineMembership
public double determineMembership(double value)
Compute the membership functions given two points.- Parameters:
value
-- Returns:
-
fuzzyAnd
public double fuzzyAnd(double[] values)
Method for determining the min() of an array of values.- Parameters:
values
-- Returns:
-
fuzzyOr
public double fuzzyOr(double[] values)
- Parameters:
values
-- Returns:
-
-