blob: fe2b7207d910df30ea58b427f96c171b862792a2 (
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
|
#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 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
|