Go to the previous section.

## FlFNumTriangle -- Fuzzy number (triangle)

### SYNOPSIS

`#include <FuzzyLib/FNumTriangle.h>`

### TYPE

`Fl_FNUMTRIANGLE`

### BASE CLASSES

FlFSetTriangle

### DERIVED CLASSES

None

### RELATED CLASSES

None

### DESCRIPTION

`FlFNumTriangle` provides triangle fuzzy set the necessarry mathematical operations and methods for defuzzification.

Constructors:

`FlFNumTriangle();`
`FlFNumTriangle(FlParam *param);`
`FlFNumTriangle(double m, double a, double b);`
`FlFNumTriangle(const FlFSetTriangle &n);`
  Initializes `FlFNumTriangle`.

In addition to the member functions required by FuzzyLib, `FlFNumTriangle` provides:

`double center_of_gravity(double min, double max)const;`
  Returns the center of gravity.
`double defuzzy();`
  Returns the defuzzyfied variable.
`FlFNumTriangle sqr(FlFNumTriangle);`
  Squares a `FlFNumTriangle` set, using the extension principle.
`FlFNumTriangle abs(FlFNumTriangle);`
  Returns the positiv `FlFNumTriangle`.
`FlFNumTriangle &operator =(const FlFNumTriangle &n);`
  Sets this `FlFNumTriangle` to `n`.
`FlFNumTriangle operator +(FlFNumTriangle, FlFNumTriangle);`
`FlFNumTriangle operator -(FlFNumTriangle, FlFNumTriangle);`
`FlFNumTriangle operator *(FlFNumTriangle, double);`
`FlFNumTriangle operator *(double, FlFNumTriangle);`
  Adds/ substracts two `FlFNumTriangle` sets or multiplies one with a double (extension principle).

Go to the previous section.