Perceptron: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (add REXX) |
Walterpachl (talk | contribs) m (→{{header|REXX}}: minor correction) |
||
Line 899: | Line 899: | ||
show=wordpos(run,'0 1' tries)>0 |
show=wordpos(run,'0 1' tries)>0 |
||
If run>0 Then Say ' ' |
If run>0 Then Say ' ' |
||
If show Then Say 'Point x f(x) r y |
If show Then Say 'Point x f(x) r y ff ok zz' |
||
zz=0 |
zz=0 |
||
Do d=1 To dots |
Do d=1 To dots |
||
Line 968: | Line 968: | ||
Return</lang> |
Return</lang> |
||
{{out}} |
{{out}} |
||
<pre>Point x f(x) r y |
<pre>Point x f(x) r y ff ok zz |
||
1 100 110 < 204 1 ok 1 |
1 100 110 < 204 1 ok 1 |
||
2 613 469 > 117 1 -- 1 |
2 613 469 > 117 1 -- 1 |
||
Line 1,002: | Line 1,002: | ||
Initial pattern 7 points fire. weights= 0.28732 0.50931 0.45298 |
Initial pattern 7 points fire. weights= 0.28732 0.50931 0.45298 |
||
Point x f(x) r y |
Point x f(x) r y ff ok zz |
||
1 100 110 < 204 1 ok 1 |
1 100 110 < 204 1 ok 1 |
||
2 613 469 > 117 1 -- 1 |
2 613 469 > 117 1 -- 1 |
||
Line 1,052: | Line 1,052: | ||
After 9 loops 29 points fire. weights=-0.21601 0.29294 0.45176 |
After 9 loops 29 points fire. weights=-0.21601 0.29294 0.45176 |
||
Point x f(x) r y |
Point x f(x) r y ff ok zz |
||
1 100 110 < 204 1 ok 1 |
1 100 110 < 204 1 ok 1 |
||
2 613 469 > 117 -1 ok 2 |
2 613 469 > 117 -1 ok 2 |
||
Line 1,085: | Line 1,085: | ||
--------------------------------- |
--------------------------------- |
||
After 10 loops 29 points fire. weights=-0.21883 0.29057 0.45174</pre> |
After 10 loops 29 points fire. weights=-0.21883 0.29057 0.45174</pre> |
||
=={{header|Scala}}== |
=={{header|Scala}}== |