source: cpp/gdk/neurocls-factory.h @ 69

Last change on this file since 69 was 69, checked in by sz, 13 years ago

removed unnecessary files. all GDK samples can be built again (including neurotest). TODO: add #define GDK_WITHOUT_FRAMS to all VS projects! Note: read Makefile before syncing frams<->GDK!

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1
2// do not edit - generated automatically from "f0.def"
3// (to be included in "neurofactory.cpp")
4
5
6
7
8
9#define FIELDSTRUCT NI_StdNeuron
10ParamEntry NI_StdNeuron_tab []={
11{"Neuron",1, 4 ,"N",},
12{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
13{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
14{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
15{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
16 {0,0,0,},};
17#undef FIELDSTRUCT
18
19#define FIELDSTRUCT NI_StdUNeuron
20ParamEntry NI_StdUNeuron_tab []={
21{"Unipolar neuron [EXPERIMENTAL!]",1, 4 ,"Nu",},
22{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
23{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
24{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
25{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
26 {0,0,0,},};
27#undef FIELDSTRUCT
28
29#define FIELDSTRUCT NI_Gyro
30ParamEntry NI_Gyro_tab []={
31{"Gyroscope",1, 0 ,"G",},
32 {0,0,0,},};
33#undef FIELDSTRUCT
34
35#define FIELDSTRUCT NI_Touch
36ParamEntry NI_Touch_tab []={
37{"Touch",1, 1 ,"T",},
38{"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),},
39 {0,0,0,},};
40#undef FIELDSTRUCT
41
42#define FIELDSTRUCT NI_Smell
43ParamEntry NI_Smell_tab []={
44{"Smell",1, 0 ,"S",},
45 {0,0,0,},};
46#undef FIELDSTRUCT
47
48#define FIELDSTRUCT NI_Const
49ParamEntry NI_Const_tab []={
50{"Constant",1, 0 ,"*",},
51 {0,0,0,},};
52#undef FIELDSTRUCT
53
54#define FIELDSTRUCT NI_BendMuscle
55ParamEntry NI_BendMuscle_tab []={
56{"Bend muscle",1, 2 ,"|",},
57{"p",0,0,"power","f 0.01 1.0 0.25",FIELD(power),},
58{"r",0,0,"bending range","f 0.0 1.0 1.0",FIELD(bendrange),},
59 {0,0,0,},};
60#undef FIELDSTRUCT
61
62#define FIELDSTRUCT NI_RotMuscle
63ParamEntry NI_RotMuscle_tab []={
64{"Rotation muscle",1, 1 ,"@",},
65{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
66 {0,0,0,},};
67#undef FIELDSTRUCT
68
69#define FIELDSTRUCT NI_Diff
70ParamEntry NI_Diff_tab []={
71{"Differentiate",1, 0 ,"D",},
72 {0,0,0,},};
73#undef FIELDSTRUCT
74
75#define FIELDSTRUCT NI_FuzzyNeuro
76ParamEntry NI_FuzzyNeuro_tab []={
77{"Fuzzy system [EXPERIMENTAL!]",1, 4 ,"Fuzzy",},
78{"ns",0,0,"number of fuzzy sets","d 1  ",FIELD(fuzzySetsNr),},
79{"nr",0,0,"number of rules","d 1  ",FIELD(rulesNr),},
80{"fs",0,0,"fuzzy sets","s 0 -1 0",FIELD(fuzzySetString),},
81{"fr",0,0,"fuzzy rules","s 0 -1 0",FIELD(fuzzyRulesString),},
82 {0,0,0,},};
83#undef FIELDSTRUCT
84
85#define FIELDSTRUCT NI_Sticky
86ParamEntry NI_Sticky_tab []={
87{"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",},
88 {0,0,0,},};
89#undef FIELDSTRUCT
90
91#define FIELDSTRUCT NI_LinearMuscle
92ParamEntry NI_LinearMuscle_tab []={
93{"Linear muscle [EXPERIMENTAL!]",1, 1 ,"LMu",},
94{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
95 {0,0,0,},};
96#undef FIELDSTRUCT
97
98#define FIELDSTRUCT NI_WaterDetect
99ParamEntry NI_WaterDetect_tab []={
100{"Water detector",1, 0 ,"Water",},
101 {0,0,0,},};
102#undef FIELDSTRUCT
103
104#define FIELDSTRUCT NI_Energy
105ParamEntry NI_Energy_tab []={
106{"Energy level",1, 0 ,"Energy",},
107 {0,0,0,},};
108#undef FIELDSTRUCT
109
110#define FIELDSTRUCT NI_Channelize
111ParamEntry NI_Channelize_tab []={
112{"Channelize",1, 0 ,"Ch",},
113 {0,0,0,},};
114#undef FIELDSTRUCT
115
116#define FIELDSTRUCT NI_ChMux
117ParamEntry NI_ChMux_tab []={
118{"Channel multiplexer",1, 0 ,"ChMux",},
119 {0,0,0,},};
120#undef FIELDSTRUCT
121
122#define FIELDSTRUCT NI_ChSel
123ParamEntry NI_ChSel_tab []={
124{"Channel selector",1, 1 ,"ChSel",},
125{"ch",0,0,"channel","d   ",FIELD(ch),},
126 {0,0,0,},};
127#undef FIELDSTRUCT
128
129#define FIELDSTRUCT NI_Random
130ParamEntry NI_Random_tab []={
131{"Random noise",1, 0 ,"Rnd",},
132 {0,0,0,},};
133#undef FIELDSTRUCT
134
135#define FIELDSTRUCT NI_Sinus
136ParamEntry NI_Sinus_tab []={
137{"Sinus generator",1, 2 ,"Sin",},
138{"f0",0,0,"base frequency","f -1.0 1.0 0.06283185307",FIELD(f0),},
139{"t",0,0,"time","f 0 6.283185307 0",FIELD(t),},
140 {0,0,0,},};
141#undef FIELDSTRUCT
142
143#define SETIMPLEMENTATION \
144setImplementation("N",new NI_StdNeuron); \
145setImplementation("Nu",new NI_StdUNeuron); \
146setImplementation("G",new NI_Gyro); \
147setImplementation("T",new NI_Touch); \
148setImplementation("S",new NI_Smell); \
149setImplementation("*",new NI_Const); \
150setImplementation("|",new NI_BendMuscle); \
151setImplementation("@",new NI_RotMuscle); \
152setImplementation("D",new NI_Diff); \
153setImplementation("Fuzzy",new NI_FuzzyNeuro); \
154setImplementation("Sti",new NI_Sticky); \
155setImplementation("LMu",new NI_LinearMuscle); \
156setImplementation("Water",new NI_WaterDetect); \
157setImplementation("Energy",new NI_Energy); \
158setImplementation("Ch",new NI_Channelize); \
159setImplementation("ChMux",new NI_ChMux); \
160setImplementation("ChSel",new NI_ChSel); \
161setImplementation("Rnd",new NI_Random); \
162setImplementation("Sin",new NI_Sinus); \
163
Note: See TracBrowser for help on using the repository browser.