Neuron: neural networks |
![]() |
Unité : neurone de base, classe unit. More...
#include <neur/mlp/unit.h>

Public Member Functions | |
Constructeurs - Destructeur | |
| unit (const char *nom="", int typ=ENTREE, int xx=0, int yy=0, int zz=0, T bia=0, T sor=0) | |
| Constructeur. | |
| ~unit () | |
| Destructeur. | |
Opérateurs | |
| unit< T > & | operator= (const unit< T > &u) |
| unit< T > & | operator+ (const unit< T > &u) |
| unit< T > & | operator- (const unit< T > &u) |
| unit< T > & | operator* (const unit< T > &u) |
| unit< T > & | operator/ (const unit< T > &u) |
| unit< T > & | operator^ (const unit< T > &u) |
| unit< T > & | operator++ () |
| unit< T > & | operator+= (const unit< T > &u) |
| unit< T > & | operator-= (const unit< T > &u) |
| unit< T > & | operator*= (const unit< T > &u) |
| unit< T > & | operator/= (const unit< T > &u) |
| int | operator== (const unit< T > &u) const |
| Egalité de nom, position, type, biais. | |
| int | operator!= (const unit< T > &u) const |
| Inégalité. | |
| int | operator< (const unit< T > &u) const |
| Comparaison de type. | |
| int | operator> (const unit< T > &u) const |
| int | operator<= (const unit< T > &u) const |
| int | operator>= (const unit< T > &u) const |
Accès aux champs | |
| const char * | nm () const |
| Nom du neurone. | |
| T | bi () const |
| Biais. | |
| int | t () const |
| Type de neurone. | |
| T | o () const |
| Sortie. | |
| int | x () const |
| Position x. | |
| int | y () const |
| Position y. | |
| int | z () const |
| Position z. | |
Modification des champs | |
| void | set (const char *nom, int typ, int xx, int yy, int zz, T bia, T sor) |
| Fixe tous les champs à la fois. | |
| void | set_nm (const char *nom) |
| Fixe le nom du neurone. | |
| void | set_t (int typ) |
| Fixe le type de neurone. | |
| void | set_coord (int xx, int yy, int zz) |
| Fixe les coordonnées. | |
| void | set_bi (T bia) |
| Fixe le biais. | |
| void | set_o (T sor) |
| Fixe l'état de sortie. | |
Fonctions | |
| char | _nm [12] |
| Champ nom. | |
| T | _bi |
| Champ biais. | |
| int | _t |
| Champ type. | |
| T | _o |
| Champ sortie. | |
| int | _x |
| Champs coordonnées. | |
| int | _y |
| int | _z |
| void | aff () const |
| Affiche les caractéristiques du neurone. | |
| void | errtyp () const |
| Affiche un message d'erreur de type. | |
Unité : neurone de base, classe unit.
\ \ template<class T> class unit; \ \ Cette classe représente un neurone dans un réseau. Une unité garde en mémoire son nom (nm), son type (t), son biais (bi), son état de sortie (o) et ses coordonnées (x, y, z), qui sont utilisées pour la représentation graphique par le logiciel SNNS. \ La classe T est le type numérique utilisé pour représenter le biais et la sortie: par exemple: int ou double.
|
inline |
Constructeur.
Definition at line 45 of file unit.h.
Referenced by operator!=(), operator*(), operator*=(), operator+(), operator++(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and operator^().
| void unit< T >::aff | ( | ) | const |
Affiche les caractéristiques du neurone.
|
inline |
|
protected |
Affiche un message d'erreur de type.
|
inline |
|
inline |
| void unit< T >::set | ( | const char * | nom, |
| int | typ, | ||
| int | xx, | ||
| int | yy, | ||
| int | zz, | ||
| T | bia, | ||
| T | sor ) |
Fixe tous les champs à la fois.
Referenced by unit().
|
inline |
| void unit< T >::set_coord | ( | int | xx, |
| int | yy, | ||
| int | zz ) |
Fixe les coordonnées.
| void unit< T >::set_nm | ( | const char * | nom | ) |
Fixe le nom du neurone.
|
inline |
| void unit< T >::set_t | ( | int | typ | ) |
Fixe le type de neurone.
\ Les types possibles sont :\ ENTREE, CACHE, SORTIE.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Champ biais.
Definition at line 133 of file unit.h.
Referenced by bi(), operator!=(), operator==(), and set_bi().
|
protected |
Champ nom.
Definition at line 131 of file unit.h.
Referenced by nm(), operator!=(), and operator==().
|
protected |
|
protected |
Champ type.
Definition at line 135 of file unit.h.
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and t().
|
protected |
Champs coordonnées.
Definition at line 139 of file unit.h.
Referenced by operator!=(), operator==(), and x().
|
protected |
Definition at line 141 of file unit.h.
Referenced by operator!=(), operator==(), and y().
|
protected |
Definition at line 143 of file unit.h.
Referenced by operator!=(), operator==(), and z().