libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
crn::FuzzyLogic Namespace Reference

Fuzzy logic toolbox. More...

Functions

RealToRealFunction MakeCompatibility (const RealToRealFunction &f, const RealToRealFunction &g, size_t nbBins)
 Computes the compatibility function between a regular function and a approximated function. More...
 
double DefuzzificationCOG (double min, double max, const RealToRealFunction &f)
 Defuzzification over an interval using center of gravity method. More...
 

Detailed Description

Fuzzy logic toolbox.

Tools for fuzzy logic

Author
Jean DUONG
Date
January 2009
Version
0.2

Function Documentation

double crn::FuzzyLogic::DefuzzificationCOG ( double  min,
double  max,
const RealToRealFunction f 
)

Defuzzification over an interval using center of gravity method.

Defuzzification over an interval using center of gravity method

Parameters
[in]minbeginning of the interval
[in]maxend of the interval
[in]fa truth function
Returns
the truth value after defuzzification

Definition at line 79 of file CRNFuzzyLogic.cpp.

RealToRealFunction crn::FuzzyLogic::MakeCompatibility ( const RealToRealFunction f,
const RealToRealFunction g,
size_t  nbBins 
)

Computes the compatibility function between a regular function and a approximated function.

Compute the compatibility function between a regular function and a approximated function

Parameters
[in]fthe regular function
[in]gthe approximated function
[in]nbBinsthe number of slices in resulting function
Returns
a real to real function

Definition at line 36 of file CRNFuzzyLogic.cpp.