Neuron: neural networks


link.h
Go to the documentation of this file.
1
2
3#ifndef NEUR_LINK_H
4#define NEUR_LINK_H
5
6
7#include <neur/mlp/lelm.h>
8
9
10// CONNEXION
11
19template<class T> class neur_link /* - Connexion: -*/
20{
21 public:
22
25
26 neur_link() { _ta=0; _nl=0; _le=0; }
28 neur_link(int tar, int nli) { init(tar,nli); }
30 neur_link(int tar, int nli, int *ori) { init(tar,nli,ori); }
33
35 ~neur_link() { delete[] _le; }
37
40
55 int operator ==(const neur_link<T> & le) const;
56 int operator !=(const neur_link<T> & le) const;
57 int operator <(const neur_link<T> & le) const;
58 int operator >(const neur_link<T> & le) const;
59 int operator <=(const neur_link<T> & le) const;
60 int operator >=(const neur_link<T> & le) const;
62
65
68 void init(int tar, int nli);
70 void init(int tar, int nli, int *ori);
71
73 void set_ta(int t) { _ta=t; }
75 void add(int ori, T wgt);
77 int del(int ori);
79 void aff() const;
81
84
85 int ta() const { return(_ta); }
87 int nl() const { return(_nl); }
89 lelm<T> *le() const { return(_le); }
91
92
93 protected:
94
96 int _ta;
98 int _nl;
101};
102
103
104
105
106
107
108#endif
109
Liens élémemtaires : classe lelm.
Definition lelm.h:21