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

Last change on this file since 50 was 5, checked in by sz, 16 years ago

added the GDK (Genotype Development Kit)

File size: 4.5 KB
Line 
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
14ParamEntry 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
24ParamEntry 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
34ParamEntry NI_Gyro_tab []={
35{"Gyroscope",1, 0 ,"G",},
36 {0,0,0,},};
37#undef FIELDSTRUCT
38
39#define FIELDSTRUCT NI_Touch
40ParamEntry NI_Touch_tab []={
41{"Touch",1, 0 ,"T",},
42 {0,0,0,},};
43#undef FIELDSTRUCT
44
45#define FIELDSTRUCT NI_Smell
46ParamEntry NI_Smell_tab []={
47{"Smell",1, 0 ,"S",},
48 {0,0,0,},};
49#undef FIELDSTRUCT
50
51#define FIELDSTRUCT NI_Const
52ParamEntry NI_Const_tab []={
53{"Constant",1, 0 ,"*",},
54 {0,0,0,},};
55#undef FIELDSTRUCT
56
57#define FIELDSTRUCT NI_BendMuscle
58ParamEntry 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
66ParamEntry 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
73ParamEntry NI_Diff_tab []={
74{"Differentiate",1, 0 ,"D",},
75 {0,0,0,},};
76#undef FIELDSTRUCT
77
78#define FIELDSTRUCT NI_FuzzyNeuro
79ParamEntry 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
89ParamEntry NI_Sticky_tab []={
90{"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",},
91 {0,0,0,},};
92#undef FIELDSTRUCT
93
94#define FIELDSTRUCT NI_LinearMuscle
95ParamEntry 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
102ParamEntry NI_WaterDetect_tab []={
103{"Water detector",1, 0 ,"Water",},
104 {0,0,0,},};
105#undef FIELDSTRUCT
106
107#define FIELDSTRUCT NI_Energy
108ParamEntry NI_Energy_tab []={
109{"Energy level",1, 0 ,"Energy",},
110 {0,0,0,},};
111#undef FIELDSTRUCT
112
113#define FIELDSTRUCT NI_Channelize
114ParamEntry NI_Channelize_tab []={
115{"Channelize",1, 0 ,"Ch",},
116 {0,0,0,},};
117#undef FIELDSTRUCT
118
119#define FIELDSTRUCT NI_ChMux
120ParamEntry NI_ChMux_tab []={
121{"Channel multiplexer",1, 0 ,"ChMux",},
122 {0,0,0,},};
123#undef FIELDSTRUCT
124
125#define FIELDSTRUCT NI_ChSel
126ParamEntry 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
133ParamEntry NI_Random_tab []={
134{"Random noise",1, 0 ,"Rnd",},
135 {0,0,0,},};
136#undef FIELDSTRUCT
137
138#define FIELDSTRUCT NI_Sinus
139ParamEntry 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 \
147setImplementation("N",new NI_StdNeuron); \
148setImplementation("Nu",new NI_StdUNeuron); \
149setImplementation("G",new NI_Gyro); \
150setImplementation("T",new NI_Touch); \
151setImplementation("S",new NI_Smell); \
152setImplementation("*",new NI_Const); \
153setImplementation("|",new NI_BendMuscle); \
154setImplementation("@",new NI_RotMuscle); \
155setImplementation("D",new NI_Diff); \
156setImplementation("Fuzzy",new NI_FuzzyNeuro); \
157setImplementation("Sti",new NI_Sticky); \
158setImplementation("LMu",new NI_LinearMuscle); \
159setImplementation("Water",new NI_WaterDetect); \
160setImplementation("Energy",new NI_Energy); \
161setImplementation("Ch",new NI_Channelize); \
162setImplementation("ChMux",new NI_ChMux); \
163setImplementation("ChSel",new NI_ChSel); \
164setImplementation("Rnd",new NI_Random); \
165setImplementation("Sin",new NI_Sinus); \
166
Note: See TracBrowser for help on using the repository browser.