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