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


CNFSetLR -- Fuzzy set with L and R functions

SYNOPSIS

#include <CNCL/FSetLR.h>

TYPE

CN_FSETLR

BASE CLASSES

CNFSet

DERIVED CLASSES

CNFSetTrapez

RELATED CLASSES

None

DESCRIPTION

CNFSetLR provides the LR-representation of fuzzy sets. At this representation, the interval [xm1, xm2] is considered to have the maximum membership value ( 1 if normalized ), the left (L) and right (R) approach is described by a shape function. Additionally, a left (alpha) and a right (beta) slope is defined, thus the whole membership function is:
L ( (xm1 - x) / alpha ) for x <= xm1
max (1 if normalized) for xm1 <= x <= xm2
R ( (x - xm2) / beta ) for x >= xm2

Constructors:

CNFSetLR();
CNFSetLR(CNParam *param);
CNFSetLR(double xm1, double xm2, double xalpha, double xbeta, CNFuncType fL, CNFuncType fR);
CNFSetLR(double min, double max, double xm1, double xm2, double xalpha, double xbeta,
CNFuncType fL, CNFuncType fR);
CNFSetLR(CNStringR xname, double min, double max, double xm1, double xm2
double xalpha, double xbeta, CNFuncType fL, CNFuncType fR);
CNFSetLR(CNStringR xname, double xm1, double xm2, double xalpha, double xbeta,
CNFuncType fL, CNFuncType fR);
Initializes CNFSetLR. The possible variables and their default values are:
left/right maximum (xm1,xm2) (0,0), the left/right slope (alpha,beta) (0,0), the left/right function (fL,fR) (CNFuncLin,CNFuncLin) and the values for the named CNFSet xname,min,max with the according default settings of that class.


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

typedef double (*CNFuncType)(double x);
Function pointer to the functions for L/R use. Implemented functions are:
virtual double get_membership(double x) const;
Gets the membership values for x.
double get_m1() const;
Returns the value m1 (left maximum).
double get_m2() const;
Returns the value m2 (right maximum).
double get_alpha() const;
Returns the value alpha (left slope).
double get_beta() const;
Returns the value beta (right slope).


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