• Nie Znaleziono Wyników

Fuzzy Logic

N/A
N/A
Protected

Academic year: 2021

Share "Fuzzy Logic"

Copied!
7
0
0

Pełen tekst

(1)

Fuzzy Logic

Assuming the the task to do is following:

Write 3-5 fuzzy rules that determine heart attack risk, using:

Three ‘universes of discourse’ (UoD): diet, exercise, and risk

2 or 3 fuzzy classes per UoD, and their membership functions (represent graphically)

Show fuzzy inference for one set of sample data

Using the following proposed resolution – I want You to implement it using Libre Office (Calc) to answer to the given question.

Fuzzy Rules

1. Diet is low AND Exercise is high → Balanced 2. Diet is high OR Exercise is low → Unbalanced 3. Balanced → Risk is low

4. Unbalanced → Risk is high

Membership Functions

Diet is high:

Diet is low:

(2)

Exercise is high:

Exercise is low:

Balanced:

(3)

Unbalanced:

Risk is high:

Risk is low:

(4)

Sample Data

Diet: consume 3000 calories per day.

Exercise: burn 1000 calories per day.

What is the risk of heart disease?

Fuzzification

Membership for Diet High:

Membership for Diet Low:

Membership for Exercise High:

Membership for Exercise Low:

(5)

Rule Evaluation

1. Diet is low AND Exercise is high → Balanced Membership for Balanced:

2. Diet is high OR Exercise is low → Unbalanced Membership for Unbalanced:

3. Balanced → Risk is low Membership for Risk Low:

Likelihood of heart disease cut off:

Membership function for Risk Low:

(6)

4. Unbalanced → Risk is high Membership for Risk High:

Likelihood of heart disease cut off:

Membership function for Risk High:

Aggregation

The aggregated membership for Risk High and Risk Low:

The aggregated Risk function:

(7)

Defuzzification

The Center of Gravity (COG) method is used for the defuzzification.

The integration of the aggregated Risk membership function returns a likelihood of 47.5% of heart disease.

Cytaty

Powiązane dokumenty

In this article many theories concerning knowledge sharing motivation have been discussed and to some extent integrated in a comprehensive model. In this way, a number of potentially

This work describes a trust model that augments fuzzy logic with Q- learning to help trust evaluating agents select beneficial trustees for interaction in uncertain, open, dynamic,

Use the 690+ Quick Start (HA4700631) guide to set up the drive and Autotune the drive in the Closed Loop Vector mode. Set the desired Distance, Velocity & Acceleration values,

tych przez poszczególne działy zagłębiowskich placówek muzealnych, tj.: Muzeum Zagłębia w Będzinie, Muzeum w Sosnowcu, Sosnowieckie Cen- trum Sztuki -Zamek Sielecki

W części materiałów źródłowych zamieszczono opracowany przez Adama Ku- bacza urbarz dóbr Łaskarzówka z 1728 roku, sprawozdania z pierwszego i drugiego transportu

the impossibility of attaching definite val- ues to both of two canonically conjugated variables] discloses only an essential inadequacy of the customary viewpoint of natural

Besides these the proof uses Borel–Carath´ eodory theorem and Hadamard’s three circles theorem (the application of these last two theorems is similar to that explained in [4], pp..

Keywords: fault tolerant control systems, performance degradation, reference management, model predictive control, performance