summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2012-07-09 12:46:54 -0600
committerMike Buland <mike@xagasoft.com>2012-07-09 12:46:54 -0600
commit87dc10690035b02485067f2b0b77bcb0459da42b (patch)
tree1b872763b0e5bf5411e515bbe474910a44a1a7ec /src/tests
parent49139048717d32e214d725a334b5920c35f7366f (diff)
downloadlibneural-87dc10690035b02485067f2b0b77bcb0459da42b.tar.gz
libneural-87dc10690035b02485067f2b0b77bcb0459da42b.tar.bz2
libneural-87dc10690035b02485067f2b0b77bcb0459da42b.tar.xz
libneural-87dc10690035b02485067f2b0b77bcb0459da42b.zip
Started pic test.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/pic.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/pic.cpp b/src/tests/pic.cpp
index 89bfcaf..95bb523 100644
--- a/src/tests/pic.cpp
+++ b/src/tests/pic.cpp
@@ -1,7 +1,33 @@
1#include "neural/network.h" 1#include "neural/network.h"
2#include "neural/column.h"
3#include "neural/row.h"
4#include "neural/neuron.h"
2 5
3int main( int argc, char *argv[] ) 6int main( int argc, char *argv[] )
4{ 7{
8 Neural::Column<float> *c = new Neural::Column<float>();
9 Neural::Row<float> *r1 = new Neural::Row<float>();
10 r1->addNode( new Neural::Neuron<float>() );
11 r1->addNode( new Neural::Neuron<float>() );
12 r1->addNode( new Neural::Neuron<float>() );
13 r1->addNode( new Neural::Neuron<float>() );
14 r1->addNode( new Neural::Neuron<float>() );
15 c->addNode( r1 );
16 Neural::Row<float> *r2 = new Neural::Row<float>();
17 r2->addNode( new Neural::Neuron<float>() );
18 r2->addNode( new Neural::Neuron<float>() );
19 r2->addNode( new Neural::Neuron<float>() );
20 r2->addNode( new Neural::Neuron<float>() );
21 r2->addNode( new Neural::Neuron<float>() );
22 r2->addNode( new Neural::Neuron<float>() );
23 r2->addNode( new Neural::Neuron<float>() );
24 c->addNode( r2 );
25 Neural::Row<float> *r3 = new Neural::Row<float>();
26 r3->addNode( new Neural::Neuron<float>() );
27 r3->addNode( new Neural::Neuron<float>() );
28 r3->addNode( new Neural::Neuron<float>() );
29 c->addNode( r3 );
30
5 return 0; 31 return 0;
6} 32}
7 33