Home Start Back Next End
  
21
diperoleh nilai threshold yang sesuai dengan tabel adalah 2. Arsitektur
jaringan sederhana untuk kasus OR seperti berikut
2
2
Treshold (Y) = 2
Contoh program jaringan sederhana operasi OR
Jaringan sederhana NOT
Tabel 2.3 Operasi NOT
X1
Y
0
1
1
0
X1
X2
Y
#include<iostream.h>
Main()
{
Int w1, w2, x1, x2, O;
W1 = 1; w2 = 1;
Cout << “X1= “;
Cin >> x1;
Cout << “x2 = “;
Cin >> x2;
O = x1 *w1 + x2 *w2;
If(o >= 2)
Cout << “output OR = 1” << endl;
Else
Cout << “output OR = 0” << endl;
}
Word to PDF Converter | Word to HTML Converter