source: cpp/frams/neuro/neurocls-f0-SDK-factory.h @ 1109

Last change on this file since 1109 was 1109, checked in by Maciej Komosinski, 4 years ago

Follow-up to r1107

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5
6// do not edit - generated automatically from "f0.def"
7// (to be included in "neurofactory.cpp")
8
9
10
11
12
13
14
15#define FIELDSTRUCT NI_StdNeuron
16ParamEntry NI_StdNeuron_tab []={
17{"Neuron",1, 4 ,"N",},
18{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
19{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
20{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
21{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
22 {0,0,0,},};
23#undef FIELDSTRUCT
24
25#define FIELDSTRUCT NI_StdUNeuron
26ParamEntry NI_StdUNeuron_tab []={
27{"Unipolar neuron [EXPERIMENTAL!]",1, 4 ,"Nu",},
28{"in",1,0,"Inertia","f 0.0 1.0 0.8",FIELD(inertia),},
29{"fo",1,0,"Force","f 0.0 999.0 0.04",FIELD(force),},
30{"si",1,0,"Sigmoid","f -99999.0 99999.0 2.0",FIELD(sigmo),},
31{"s",2,0,"State","f -1.0 1.0 0.0",FIELD(newstate),},
32 {0,0,0,},};
33#undef FIELDSTRUCT
34
35#define FIELDSTRUCT NI_Gyro
36ParamEntry NI_Gyro_tab []={
37{"Gyroscope",1, 0 ,"G",},
38 {0,0,0,},};
39#undef FIELDSTRUCT
40
41#define FIELDSTRUCT NI_GyroP
42ParamEntry NI_GyroP_tab []={
43{"Part Gyroscope",1, 2 ,"Gpart",},
44{"ry",1,0,"rotation.y","f -6.282 6.282 0",FIELD(ry),},
45{"rz",1,0,"rotation.z","f -6.282 6.282 0",FIELD(rz),},
46 {0,0,0,},};
47#undef FIELDSTRUCT
48
49#define FIELDSTRUCT NI_Touch
50ParamEntry NI_Touch_tab []={
51{"Touch",1, 3 ,"T",},
52{"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),},
53{"ry",1,0,"rotation.y","f -6.282 6.282 0",FIELD(ry),},
54{"rz",1,0,"rotation.z","f -6.282 6.282 0",FIELD(rz),},
55 {0,0,0,},};
56#undef FIELDSTRUCT
57
58#define FIELDSTRUCT NI_TouchC
59ParamEntry NI_TouchC_tab []={
60{"Touch contact",1, 0 ,"Tcontact",},
61 {0,0,0,},};
62#undef FIELDSTRUCT
63
64#define FIELDSTRUCT NI_TouchP
65ParamEntry NI_TouchP_tab []={
66{"Touch proximity",1, 3 ,"Tproximity",},
67{"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),},
68{"ry",1,0,"rotation.y","f -6.282 6.282 0",FIELD(ry),},
69{"rz",1,0,"rotation.z","f -6.282 6.282 0",FIELD(rz),},
70 {0,0,0,},};
71#undef FIELDSTRUCT
72
73#define FIELDSTRUCT NI_Smell
74ParamEntry NI_Smell_tab []={
75{"Smell",1, 0 ,"S",},
76 {0,0,0,},};
77#undef FIELDSTRUCT
78
79#define FIELDSTRUCT NI_Const
80ParamEntry NI_Const_tab []={
81{"Constant",1, 0 ,"*",},
82 {0,0,0,},};
83#undef FIELDSTRUCT
84
85#define FIELDSTRUCT NI_BendMuscle
86ParamEntry NI_BendMuscle_tab []={
87{"Bend muscle",1, 2 ,"|",},
88{"p",0,0,"power","f 0.0 1.0 0.25",FIELD(power),},
89{"r",0,0,"bending range","f 0.0 1.0 1.0",FIELD(bendrange),},
90 {0,0,0,},};
91#undef FIELDSTRUCT
92
93#define FIELDSTRUCT NI_RotMuscle
94ParamEntry NI_RotMuscle_tab []={
95{"Rotation muscle",1, 1 ,"@",},
96{"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),},
97 {0,0,0,},};
98#undef FIELDSTRUCT
99
100#define FIELDSTRUCT NI_SolidMuscle
101ParamEntry NI_SolidMuscle_tab []={
102{"Muscle for solids",1, 2 ,"M",},
103{"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),},
104{"a",0,0,"axis","d 0 1 0",FIELD(axis),},
105 {0,0,0,},};
106#undef FIELDSTRUCT
107
108#define FIELDSTRUCT NI_Diff
109ParamEntry NI_Diff_tab []={
110{"Differentiate",1, 0 ,"D",},
111 {0,0,0,},};
112#undef FIELDSTRUCT
113
114#define FIELDSTRUCT NI_FuzzyNeuro
115ParamEntry NI_FuzzyNeuro_tab []={
116{"Fuzzy system [EXPERIMENTAL!]",1, 4 ,"Fuzzy",},
117{"ns",0,0,"number of fuzzy sets","d 1  ",FIELD(fuzzySetsNr),},
118{"nr",0,0,"number of rules","d 1  ",FIELD(rulesNr),},
119{"fs",0,0,"fuzzy sets","s 0 -1 ",FIELD(fuzzySetString),},
120{"fr",0,0,"fuzzy rules","s 0 -1 ",FIELD(fuzzyRulesString),},
121 {0,0,0,},};
122#undef FIELDSTRUCT
123
124#define FIELDSTRUCT NI_Sticky
125ParamEntry NI_Sticky_tab []={
126{"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",},
127 {0,0,0,},};
128#undef FIELDSTRUCT
129
130#define FIELDSTRUCT NI_LinearMuscle
131ParamEntry NI_LinearMuscle_tab []={
132{"Linear muscle [EXPERIMENTAL!]",1, 1 ,"LMu",},
133{"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),},
134 {0,0,0,},};
135#undef FIELDSTRUCT
136
137#define FIELDSTRUCT NI_WaterDetect
138ParamEntry NI_WaterDetect_tab []={
139{"Water detector",1, 0 ,"Water",},
140 {0,0,0,},};
141#undef FIELDSTRUCT
142
143#define FIELDSTRUCT NI_Energy
144ParamEntry NI_Energy_tab []={
145{"Energy level",1, 0 ,"Energy",},
146 {0,0,0,},};
147#undef FIELDSTRUCT
148
149#define FIELDSTRUCT NI_Channelize
150ParamEntry NI_Channelize_tab []={
151{"Channelize",1, 0 ,"Ch",},
152 {0,0,0,},};
153#undef FIELDSTRUCT
154
155#define FIELDSTRUCT NI_ChMux
156ParamEntry NI_ChMux_tab []={
157{"Channel multiplexer",1, 0 ,"ChMux",},
158 {0,0,0,},};
159#undef FIELDSTRUCT
160
161#define FIELDSTRUCT NI_ChSel
162ParamEntry NI_ChSel_tab []={
163{"Channel selector",1, 1 ,"ChSel",},
164{"ch",0,0,"channel","d   ",FIELD(ch),},
165 {0,0,0,},};
166#undef FIELDSTRUCT
167
168#define FIELDSTRUCT NI_Random
169ParamEntry NI_Random_tab []={
170{"Random noise",1, 0 ,"Rnd",},
171 {0,0,0,},};
172#undef FIELDSTRUCT
173
174#define FIELDSTRUCT NI_Sinus
175ParamEntry NI_Sinus_tab []={
176{"Sinus generator",1, 2 ,"Sin",},
177{"f0",0,0,"base frequency","f -1.0 1.0 0.06283185307",FIELD(f0),},
178{"t",0,0,"time","f 0 6.283185307 0",FIELD(t),},
179 {0,0,0,},};
180#undef FIELDSTRUCT
181
182#define SETIMPLEMENTATION \
183setImplementation("N",new NI_StdNeuron); \
184setImplementation("Nu",new NI_StdUNeuron); \
185setImplementation("G",new NI_Gyro); \
186setImplementation("Gpart",new NI_GyroP); \
187setImplementation("T",new NI_Touch); \
188setImplementation("Tcontact",new NI_TouchC); \
189setImplementation("Tproximity",new NI_TouchP); \
190setImplementation("S",new NI_Smell); \
191setImplementation("*",new NI_Const); \
192setImplementation("|",new NI_BendMuscle); \
193setImplementation("@",new NI_RotMuscle); \
194setImplementation("M",new NI_SolidMuscle); \
195setImplementation("D",new NI_Diff); \
196setImplementation("Fuzzy",new NI_FuzzyNeuro); \
197setImplementation("Sti",new NI_Sticky); \
198setImplementation("LMu",new NI_LinearMuscle); \
199setImplementation("Water",new NI_WaterDetect); \
200setImplementation("Energy",new NI_Energy); \
201setImplementation("Ch",new NI_Channelize); \
202setImplementation("ChMux",new NI_ChMux); \
203setImplementation("ChSel",new NI_ChSel); \
204setImplementation("Rnd",new NI_Random); \
205setImplementation("Sin",new NI_Sinus); \
206
Note: See TracBrowser for help on using the repository browser.