messo codice che segna i punti invece delle rette

This commit is contained in:
2025-01-29 14:03:46 +01:00
parent 194596b8b2
commit 45a5b07bda
11 changed files with 219 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ int MAX_EPOCHE = 10000;
4: NOR
5: XNOR
*/
int tipo = 2;
int tipo = 0;
void main()
{
@@ -77,6 +77,18 @@ void main()
Percettrone pout = crea_percettrone();
int colore_blu = makecol(0, 0, 255);
p_ext_1.w1 = 1.332870;
p_ext_1.w2 = -0.628797;
p_ext_1.bias = 0.729138;
p_ext_2.w1 = 0.459249;
p_ext_2.w2 = 0.394682;
p_ext_2.bias = 0.833102;
pout.w1 = -0.004388;
pout.w2 = 0.090205;
pout.bias = -0.067931;
// Contatore per fermare il percettrone, se vale 4 significa che ha indovinato tutte e 4 le combinazioni
int corrette = 0;
@@ -110,7 +122,6 @@ void main()
}
readkey();
break;
}