public class DegreeOfFulfillment
extends java.lang.Object
Constructor and Description |
---|
DegreeOfFulfillment() |
Modifier and Type | Method and Description |
---|---|
static double[] |
andInterval(double[] universe1,
double[] universe2)
Calculate where the two universes are defined.
|
static double |
continuousFulfillment(FuzzySet a,
FuzzySet b)
Calculate the degree of fulfillment of two continuous sets.
|
private static double[] |
crossPoint(double x1,
double a1,
double b1,
double x2,
double a2,
double b2)
Calculate where 2 lines crosses, both lines start and end in the same
places.
|
static double |
discreteFulfillment(PointSet a,
PointSet b)
Calculate the degree of fulfillment of two discrete sets.
|
static java.util.List<double[]> |
lowerEnvelope(PointSet a,
PointSet b)
Calculate the lower envelope of two piecewise linear sets.
|
static double |
mixedFulfillment(FuzzySet a,
FuzzySet b)
Calculate the degree of fulfillment of a continuous and a discrete set.
|
static double |
piecewiseFulfillment(PointSet a,
PointSet b)
Calculate the degree of fulfillment of two piecewise linear sets.
|
static java.util.List<java.lang.Double> |
pointsToEvaluate(java.util.List<double[]> paramsA,
java.util.List<double[]> paramsB,
double[] andUniverse)
Calculate the points where we should evaluate for 2 piecewise linear
sets.
|
static java.util.List<double[]> |
upperEnvelope(PointSet a,
PointSet b)
Calculate the upper envelope of two piecewise linear sets.
|
public static double discreteFulfillment(PointSet a, PointSet b)
a
- One of the discrete sets.b
- The other discrete set.public static double mixedFulfillment(FuzzySet a, FuzzySet b)
a
- One of the sets.b
- The other set.public static double continuousFulfillment(FuzzySet a, FuzzySet b)
a
- One of the continuous sets.b
- The other continuous set.public static double[] andInterval(double[] universe1, double[] universe2)
universe1
- the first universe.universe2
- the last universe.public static java.util.List<java.lang.Double> pointsToEvaluate(java.util.List<double[]> paramsA, java.util.List<double[]> paramsB, double[] andUniverse)
paramsA
- The parameters of one set.paramsB
- The parameters of the other set.andUniverse
- The universe where the both sets are defined.public static java.util.List<double[]> lowerEnvelope(PointSet a, PointSet b)
a
- One piecewise linear set.b
- The other piecewise linear set.public static java.util.List<double[]> upperEnvelope(PointSet a, PointSet b)
a
- One piecewise linear set.b
- The other piecewise linear set.private static double[] crossPoint(double x1, double a1, double b1, double x2, double a2, double b2)
x1
- The first x value.a1
- The y value of line a in the first x.b1
- The y value of line b in the first x.x2
- The last x value.a2
- The y value of line a in the last x.b2
- The y value of line b in the last x.