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

Last change on this file since 941 was 934, checked in by Maciej Komosinski, 5 years ago

Introduced 'volume' field available by getMinPart(), getMaxPart(), getDefPart() for genetic operators to limit the range of volumes (~mass) in simulation of solids

  • Property svn:eol-style set to native
File size: 4.8 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_Touch
42ParamEntry NI_Touch_tab []={
43{"Touch",1, 1 ,"T",},
44{"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),},
45 {0,0,0,},};
46#undef FIELDSTRUCT
47
48#define FIELDSTRUCT NI_Smell
49ParamEntry NI_Smell_tab []={
50{"Smell",1, 0 ,"S",},
51 {0,0,0,},};
52#undef FIELDSTRUCT
53
54#define FIELDSTRUCT NI_Const
55ParamEntry NI_Const_tab []={
56{"Constant",1, 0 ,"*",},
57 {0,0,0,},};
58#undef FIELDSTRUCT
59
60#define FIELDSTRUCT NI_BendMuscle
61ParamEntry NI_BendMuscle_tab []={
62{"Bend muscle",1, 2 ,"|",},
63{"p",0,0,"power","f 0.01 1.0 0.25",FIELD(power),},
64{"r",0,0,"bending range","f 0.0 1.0 1.0",FIELD(bendrange),},
65 {0,0,0,},};
66#undef FIELDSTRUCT
67
68#define FIELDSTRUCT NI_RotMuscle
69ParamEntry NI_RotMuscle_tab []={
70{"Rotation muscle",1, 1 ,"@",},
71{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
72 {0,0,0,},};
73#undef FIELDSTRUCT
74
75#define FIELDSTRUCT NI_SolidMuscle
76ParamEntry NI_SolidMuscle_tab []={
77{"Muscle",1, 2 ,"M",},
78{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
79{"a",0,0,"axis","d 0 1 0",FIELD(axis),},
80 {0,0,0,},};
81#undef FIELDSTRUCT
82
83#define FIELDSTRUCT NI_Diff
84ParamEntry NI_Diff_tab []={
85{"Differentiate",1, 0 ,"D",},
86 {0,0,0,},};
87#undef FIELDSTRUCT
88
89#define FIELDSTRUCT NI_FuzzyNeuro
90ParamEntry NI_FuzzyNeuro_tab []={
91{"Fuzzy system [EXPERIMENTAL!]",1, 4 ,"Fuzzy",},
92{"ns",0,0,"number of fuzzy sets","d 1  ",FIELD(fuzzySetsNr),},
93{"nr",0,0,"number of rules","d 1  ",FIELD(rulesNr),},
94{"fs",0,0,"fuzzy sets","s 0 -1 ",FIELD(fuzzySetString),},
95{"fr",0,0,"fuzzy rules","s 0 -1 ",FIELD(fuzzyRulesString),},
96 {0,0,0,},};
97#undef FIELDSTRUCT
98
99#define FIELDSTRUCT NI_Sticky
100ParamEntry NI_Sticky_tab []={
101{"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",},
102 {0,0,0,},};
103#undef FIELDSTRUCT
104
105#define FIELDSTRUCT NI_LinearMuscle
106ParamEntry NI_LinearMuscle_tab []={
107{"Linear muscle [EXPERIMENTAL!]",1, 1 ,"LMu",},
108{"p",0,0,"power","f 0.01 1.0 1.0",FIELD(power),},
109 {0,0,0,},};
110#undef FIELDSTRUCT
111
112#define FIELDSTRUCT NI_WaterDetect
113ParamEntry NI_WaterDetect_tab []={
114{"Water detector",1, 0 ,"Water",},
115 {0,0,0,},};
116#undef FIELDSTRUCT
117
118#define FIELDSTRUCT NI_Energy
119ParamEntry NI_Energy_tab []={
120{"Energy level",1, 0 ,"Energy",},
121 {0,0,0,},};
122#undef FIELDSTRUCT
123
124#define FIELDSTRUCT NI_Channelize
125ParamEntry NI_Channelize_tab []={
126{"Channelize",1, 0 ,"Ch",},
127 {0,0,0,},};
128#undef FIELDSTRUCT
129
130#define FIELDSTRUCT NI_ChMux
131ParamEntry NI_ChMux_tab []={
132{"Channel multiplexer",1, 0 ,"ChMux",},
133 {0,0,0,},};
134#undef FIELDSTRUCT
135
136#define FIELDSTRUCT NI_ChSel
137ParamEntry NI_ChSel_tab []={
138{"Channel selector",1, 1 ,"ChSel",},
139{"ch",0,0,"channel","d   ",FIELD(ch),},
140 {0,0,0,},};
141#undef FIELDSTRUCT
142
143#define FIELDSTRUCT NI_Random
144ParamEntry NI_Random_tab []={
145{"Random noise",1, 0 ,"Rnd",},
146 {0,0,0,},};
147#undef FIELDSTRUCT
148
149#define FIELDSTRUCT NI_Sinus
150ParamEntry NI_Sinus_tab []={
151{"Sinus generator",1, 2 ,"Sin",},
152{"f0",0,0,"base frequency","f -1.0 1.0 0.06283185307",FIELD(f0),},
153{"t",0,0,"time","f 0 6.283185307 0",FIELD(t),},
154 {0,0,0,},};
155#undef FIELDSTRUCT
156
157#define SETIMPLEMENTATION \
158setImplementation("N",new NI_StdNeuron); \
159setImplementation("Nu",new NI_StdUNeuron); \
160setImplementation("G",new NI_Gyro); \
161setImplementation("T",new NI_Touch); \
162setImplementation("S",new NI_Smell); \
163setImplementation("*",new NI_Const); \
164setImplementation("|",new NI_BendMuscle); \
165setImplementation("@",new NI_RotMuscle); \
166setImplementation("M",new NI_SolidMuscle); \
167setImplementation("D",new NI_Diff); \
168setImplementation("Fuzzy",new NI_FuzzyNeuro); \
169setImplementation("Sti",new NI_Sticky); \
170setImplementation("LMu",new NI_LinearMuscle); \
171setImplementation("Water",new NI_WaterDetect); \
172setImplementation("Energy",new NI_Energy); \
173setImplementation("Ch",new NI_Channelize); \
174setImplementation("ChMux",new NI_ChMux); \
175setImplementation("ChSel",new NI_ChSel); \
176setImplementation("Rnd",new NI_Random); \
177setImplementation("Sin",new NI_Sinus); \
178
Note: See TracBrowser for help on using the repository browser.