summaryrefslogtreecommitdiff
path: root/src/node.h
blob: 1b8232769ac1f15f67f04c9b37711645cac9b999 (plain)
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
#ifndef NEURAL_NODE_H
#define NEURAL_NODE_H

namespace Neural
{
	template<typename sigtype>
	class Node
	{
	public:
		Node()
		{
		}

		virtual ~Node()
		{
		}

		virtual void finalize( int iNumInputs )=0;
		virtual int setWeights( const sigtype *pWeights )=0;
		virtual int setBiases( const sigtype *pBiases )=0;
		virtual void process( sigtype *aInput, sigtype *aOutput )=0;

		virtual int getNumInputs() const=0;
		virtual int getNumOutputs() const=0;
		virtual int getNumWeights() const=0;
		virtual int getNumBiases() const=0;
	};
};

#endif