Go to the previous, next section.
#include <CNCL/FSetTrapez.h>
CN_FSETTRAPEZ
CNFSetLR
CNFSetTriangle
None
CNFSetTrapez realizes a trapezium shaped membership function on
the base of an LR fuzzy set.
Constructors:
CNFSetTrapez()
CNFSetTrapez(CNParam *param);
CNFSetTrapez(double xm1, double xm2, double xalpha, double xbeta);
CNFSetTrapez(double min, double max, double xm1, double xm2, double xalpha, double xbeta);
CNFSetTrapez(CNStringR xname, double xm1, double xm2, double xalpha, double xbeta);
CNFSetTrapez(CNStringR xname, double min, double max, double xm1, double xm2,
double xalpha, double xbeta);
CNFSetTrapez with name as the object's name.
xm1 is the x-value of the left maximum, xm2 of the right one.
xalpha is the left and xbeta the right slope. min
and max are the function's minimum / maximum.
CNFSetTrapez
provides:
virtual double get_membership(double x) const;
x.
Go to the previous, next section.