diff options
author | mike <mike@d8baa203-390c-0410-a584-dba4c0749223> | 2011-07-16 18:53:45 +0000 |
---|---|---|
committer | mike <mike@d8baa203-390c-0410-a584-dba4c0749223> | 2011-07-16 18:53:45 +0000 |
commit | 3005ed13f0fde6d61ab8a229c1490f9389cd75b5 (patch) | |
tree | 737c067dc4ceb0e4cee26e3e5f60ef91f8e71cdb /src/node.h | |
parent | 6bf9a32cf42b3f1a6dad7018d1b1925cc909b585 (diff) | |
download | libneural-3005ed13f0fde6d61ab8a229c1490f9389cd75b5.tar.gz libneural-3005ed13f0fde6d61ab8a229c1490f9389cd75b5.tar.bz2 libneural-3005ed13f0fde6d61ab8a229c1490f9389cd75b5.tar.xz libneural-3005ed13f0fde6d61ab8a229c1490f9389cd75b5.zip |
Everything is in place except for columns, networks, and a cute language for
describing the networks. ...and tests, don't forget about tests.
git-svn-id: http://svn.xagasoft.com/misc/libneural/trunk@470 d8baa203-390c-0410-a584-dba4c0749223
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h new file mode 100644 index 0000000..fe2b720 --- /dev/null +++ b/src/node.h | |||
@@ -0,0 +1,29 @@ | |||
1 | #ifndef NEURAL_NODE_H | ||
2 | #define NEURAL_NODE_H | ||
3 | |||
4 | namespace Neural | ||
5 | { | ||
6 | template<typename sigtype> | ||
7 | class Node | ||
8 | { | ||
9 | public: | ||
10 | Node() | ||
11 | { | ||
12 | } | ||
13 | |||
14 | virtual ~Node() | ||
15 | { | ||
16 | } | ||
17 | |||
18 | virtual void finalize( int iNumInputs )=0; | ||
19 | virtual void process( sigtype *aInput, sigtype *aOutput )=0; | ||
20 | |||
21 | virtual int getNumInputs() const=0; | ||
22 | virtual int getNumOutputs() const=0; | ||
23 | virtual int getNumWeights() const=0; | ||
24 | virtual int getNumBiases() const=0; | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | #endif | ||
29 | |||