SiGraph: sulcal graphs


learnParam.h
Go to the documentation of this file.
1#ifndef SI_MODEL_LEARNPARAM_H
2#define SI_MODEL_LEARNPARAM_H
3
4#include <si/graph/clique.h>
5#include <si/graph/cgraph.h>
6#include <list>
7
8namespace sigraph
9{
10 class AdaptiveLeaf;
11 class AdapDescr;
12
13 //FIXME : ces 2 structs devraient être des Learnables :
14 // peut-être CliqueLearnable
15 typedef struct LearnConstParam
16 {
17 const Clique *clique;
21 // Potentiel de sortie à apprendre
22 double outp;
24 int cycle;
25
26 public:
27 LearnConstParam() : clique(NULL), graph(NULL),
28 descr(NULL), adap(NULL) {};
30 LearnConstParam(const struct LearnParam &lp) {
32 };
33 inline LearnConstParam& operator = (const LearnParam &lp);
36
37 typedef struct LearnParam
38 {
43 // Potentiel de sortie à apprendre
44 double outp;
46 int cycle;
47
48 public:
49 LearnParam() : clique(NULL), graph(NULL),
50 descr(NULL), adap(NULL) {};
55 inline LearnParam& operator = (const LearnConstParam &lp);
57
58 inline LearnConstParam&
60 {
61 clique = lp.clique;
62 graph = lp.graph;
63 descr = lp.descr;
64 adap = lp.adap;
65 outp = lp.outp;
66 class_id = lp.class_id;
67 cycle = lp.cycle;
68 return *this;
69 }
70
73 inline LearnConstParam&
75 {
76 clique = lp.clique;
77 graph = lp.graph;
78 descr = lp.descr;
79 adap = lp.adap;
80 outp = lp.outp;
81 class_id = lp.class_id;
82 cycle = lp.cycle;
83 return *this;
84 }
85
86 //FIXME : vérifier pourquoi cette fonction est nécessaire?
89 inline LearnParam&
91 {
92 clique = const_cast<Clique*>(lp.clique);
93 graph = lp.graph;
94 descr = lp.descr;
95 adap = lp.adap;
96 outp = lp.outp;
97 class_id = lp.class_id;
98 cycle = lp.cycle;
99 return *this;
100 }
101}
102
103#endif
104
105
Clique descriptor with description for learning.
Definition adapDescr.h:37
El�ment adaptatif terminal.
Classe Clique.
Definition clique.h:35
struct sigraph::LearnParam LearnParam
struct sigraph::LearnConstParam LearnConstParam
AdaptiveLeaf * adap
Definition learnParam.h:20
LearnConstParam & operator=(const LearnParam &lp)
Definition learnParam.h:59
LearnConstParam(const struct LearnParam &lp)
Definition learnParam.h:30
const Clique * clique
Definition learnParam.h:17
LearnParam & operator=(const LearnConstParam &lp)
la clique, la liste et le graphe sont partagés, outp et class_id sont copiés
Definition learnParam.h:90
LearnParam(const LearnConstParam &lp)
Definition learnParam.h:52
AdapDescr * descr
Definition learnParam.h:41
AdaptiveLeaf * adap
Definition learnParam.h:42