Go to the first, previous, next, last section, table of contents.


CNFSetTrapez -- Fuzzy set with trapezium function

SYNOPSIS

#include <CNCL/FSetTrapez.h>

TYPE

CN_FSETTRAPEZ

BASE CLASSES

CNFSetLR

DERIVED CLASSES

CNFSetTriangle

RELATED CLASSES

None

DESCRIPTION

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);
Initialize 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.


In addition to the member functions required by CNCL, CNFSetTrapez provides:

virtual double get_membership(double x) const;
Returns the membership value for x.


Go to the first, previous, next, last section, table of contents.