fixate tutte le formule con le parentesi.
This commit is contained in:
BIN
layer_multi
BIN
layer_multi
Binary file not shown.
@@ -169,7 +169,7 @@ void main()
|
||||
|
||||
// Prevengo la divisione per zero
|
||||
if(p_ext_1.w2 != 0 && p_ext_2.w2 != 0 && pout.w2 !=0)
|
||||
{
|
||||
{
|
||||
rette_p_ext_1[i].m = -(p_ext_1.w1 / p_ext_1.w2);
|
||||
rette_p_ext_1[i].q = -(p_ext_1.bias / p_ext_1.w2);
|
||||
rette_p_ext_2[i].m = -(p_ext_2.w1 / p_ext_2.w2);
|
||||
@@ -178,7 +178,7 @@ void main()
|
||||
/* rette_pout[i].m = -(pout.w1 * x[j][0]) / pout.w2;
|
||||
rette_pout[i].q = -(pout.bias / pout.w2); */
|
||||
|
||||
rette_pout[i].m = -(pout.w1) / pout.w2;
|
||||
rette_pout[i].m = -(pout.w1 / pout.w2);
|
||||
rette_pout[i].q = -(pout.bias / pout.w2);
|
||||
|
||||
// somma delle rette (m1 + m2)x + (q1 + q2)
|
||||
|
||||
Reference in New Issue
Block a user