source: cpp/frams/neuro/neurocls-f0-GDK-factory.h @ 109

Last change on this file since 109 was 109, checked in by sz, 10 years ago

source reorganization (see README)
new feature added: part/joint shapes (see frams/_demos/part_shapes.cpp)

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