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

Last change on this file since 918 was 419, checked in by Maciej Komosinski, 9 years ago

Default value for strings was "0" instead of ""

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