-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest_2.java
More file actions
43 lines (43 loc) · 996 Bytes
/
Test_2.java
File metadata and controls
43 lines (43 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Test_2
{
public static void main(String args[])throws Exception
{
neurn n[]=new neurn[2];
neurn n2[]=new neurn[2];
neurn n3=new neurn();
n[0]=new neurn();
n[1]=new neurn();
n2[0]=new neurn(n);
n2[1]=new neurn(n);
n3=new neurn(n2);
neurn n4=new neurn();
n4.ff(1);
n3.adn(n4);
double in[][]=new double [4][2];
double d[]=new double [4];
d[0]=0;
d[1]=1;
d[2]=1;
d[3]=0;
in[0][0]=0;
in[0][1]=0;
in[1][0]=0;
in[1][1]=1;
in[2][0]=1;
in[2][1]=0;
in[3][0]=1;
in[3][1]=1;
double e=12000;
while(e>10)
{
e--;
for(int i=0;i<4;i++)
{
n[0].ff(in[i][0]);
n[1].ff(in[i][1]);
System.out.println(d[i]+"="+i+"="+n3.fire());
e=e+n3.cerr(d[i],0.2,0.1);
}
}
}
}