A fuzzy logic C++ library
Defines | Functions | Variables
demo3.cpp File Reference

Graphical demo of defuzzifying and unary operations (complement, alpha-cut, truncate, scale) on membership functions. More...

#include "app_common.hpp"
#include "slifis_gapi.hpp"
+ Include dependency graph for demo3.cpp:

Defines

#define MIN_PIXEL_DIST   3
 minimum pixel distance between mouse and point to grab the point

Functions

void Mouse_CB (int event, int x, int y, int, void *)
 Mouse CallBack.
void DrawDefuzz ()
int main (int, char *argv[])
 See demo3.cpp.

Variables

int g_method = DF_COG
MEMBFUNC g_mf (MF_LL,"demo3", 10.0, 30.0, 60.0, 100.0)
PLOT_MF g_plot
bool g_MovingMode = false
double g_threshold = 0.5
size_t g_unary = 0

Detailed Description

Graphical demo of defuzzifying and unary operations (complement, alpha-cut, truncate, scale) on membership functions.


Define Documentation

#define MIN_PIXEL_DIST   3

minimum pixel distance between mouse and point to grab the point


Function Documentation

void Mouse_CB ( int  event,
int  x,
int  y,
int  flags,
void *  param 
)

Mouse CallBack.

void DrawDefuzz ( )
int main ( int  ,
char *  argv[] 
)

Variable Documentation

int g_method = DF_COG

Referenced by DrawDefuzz(), and main().

MEMBFUNC g_mf(MF_LL,"demo3", 10.0, 30.0, 60.0, 100.0)

Referenced by DrawDefuzz(), and main().

bool g_MovingMode = false
double g_threshold = 0.5

Referenced by DrawDefuzz(), and main().

size_t g_unary = 0

Referenced by DrawDefuzz(), and main().