[286] | 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. |
---|
[109] | 4 | |
---|
[271] | 5 | |
---|
[109] | 6 | // do not edit - generated automatically from "f0.def" |
---|
| 7 | // (to be included in "neurofactory.cpp") |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | |
---|
[934] | 14 | |
---|
[109] | 15 | #define FIELDSTRUCT NI_StdNeuron |
---|
| 16 | ParamEntry 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 |
---|
| 26 | ParamEntry 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 |
---|
| 36 | ParamEntry NI_Gyro_tab []={ |
---|
| 37 | {"Gyroscope",1, 0 ,"G",}, |
---|
| 38 | {0,0,0,},}; |
---|
| 39 | #undef FIELDSTRUCT |
---|
| 40 | |
---|
[952] | 41 | #define FIELDSTRUCT NI_GyroP |
---|
| 42 | ParamEntry NI_GyroP_tab []={ |
---|
[976] | 43 | {"Part Gyroscope",1, 2 ,"Gpart",}, |
---|
[952] | 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 | |
---|
[109] | 49 | #define FIELDSTRUCT NI_Touch |
---|
| 50 | ParamEntry NI_Touch_tab []={ |
---|
[952] | 51 | {"Touch",1, 3 ,"T",}, |
---|
[109] | 52 | {"r",1,0,"Range","f 0.0 1.0 1.0",FIELD(range),}, |
---|
[952] | 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),}, |
---|
[109] | 55 | {0,0,0,},}; |
---|
| 56 | #undef FIELDSTRUCT |
---|
| 57 | |
---|
[952] | 58 | #define FIELDSTRUCT NI_TouchC |
---|
| 59 | ParamEntry NI_TouchC_tab []={ |
---|
[976] | 60 | {"Touch contact",1, 0 ,"Tcontact",}, |
---|
[952] | 61 | {0,0,0,},}; |
---|
| 62 | #undef FIELDSTRUCT |
---|
| 63 | |
---|
| 64 | #define FIELDSTRUCT NI_TouchP |
---|
| 65 | ParamEntry NI_TouchP_tab []={ |
---|
[976] | 66 | {"Touch proximity",1, 3 ,"Tproximity",}, |
---|
[952] | 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 | |
---|
[109] | 73 | #define FIELDSTRUCT NI_Smell |
---|
| 74 | ParamEntry NI_Smell_tab []={ |
---|
| 75 | {"Smell",1, 0 ,"S",}, |
---|
| 76 | {0,0,0,},}; |
---|
| 77 | #undef FIELDSTRUCT |
---|
| 78 | |
---|
| 79 | #define FIELDSTRUCT NI_Const |
---|
| 80 | ParamEntry NI_Const_tab []={ |
---|
| 81 | {"Constant",1, 0 ,"*",}, |
---|
| 82 | {0,0,0,},}; |
---|
| 83 | #undef FIELDSTRUCT |
---|
| 84 | |
---|
| 85 | #define FIELDSTRUCT NI_BendMuscle |
---|
| 86 | ParamEntry NI_BendMuscle_tab []={ |
---|
| 87 | {"Bend muscle",1, 2 ,"|",}, |
---|
[1109] | 88 | {"p",0,0,"power","f 0.0 1.0 0.25",FIELD(power),}, |
---|
[109] | 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 |
---|
| 94 | ParamEntry NI_RotMuscle_tab []={ |
---|
| 95 | {"Rotation muscle",1, 1 ,"@",}, |
---|
[1109] | 96 | {"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),}, |
---|
[109] | 97 | {0,0,0,},}; |
---|
| 98 | #undef FIELDSTRUCT |
---|
| 99 | |
---|
[921] | 100 | #define FIELDSTRUCT NI_SolidMuscle |
---|
| 101 | ParamEntry NI_SolidMuscle_tab []={ |
---|
[946] | 102 | {"Muscle for solids",1, 2 ,"M",}, |
---|
[1109] | 103 | {"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),}, |
---|
[921] | 104 | {"a",0,0,"axis","d 0 1 0",FIELD(axis),}, |
---|
| 105 | {0,0,0,},}; |
---|
| 106 | #undef FIELDSTRUCT |
---|
| 107 | |
---|
[109] | 108 | #define FIELDSTRUCT NI_Diff |
---|
| 109 | ParamEntry NI_Diff_tab []={ |
---|
| 110 | {"Differentiate",1, 0 ,"D",}, |
---|
| 111 | {0,0,0,},}; |
---|
| 112 | #undef FIELDSTRUCT |
---|
| 113 | |
---|
| 114 | #define FIELDSTRUCT NI_FuzzyNeuro |
---|
| 115 | ParamEntry 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),}, |
---|
[419] | 119 | {"fs",0,0,"fuzzy sets","s 0 -1 ",FIELD(fuzzySetString),}, |
---|
| 120 | {"fr",0,0,"fuzzy rules","s 0 -1 ",FIELD(fuzzyRulesString),}, |
---|
[109] | 121 | {0,0,0,},}; |
---|
| 122 | #undef FIELDSTRUCT |
---|
| 123 | |
---|
| 124 | #define FIELDSTRUCT NI_Sticky |
---|
| 125 | ParamEntry NI_Sticky_tab []={ |
---|
| 126 | {"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",}, |
---|
| 127 | {0,0,0,},}; |
---|
| 128 | #undef FIELDSTRUCT |
---|
| 129 | |
---|
| 130 | #define FIELDSTRUCT NI_LinearMuscle |
---|
| 131 | ParamEntry NI_LinearMuscle_tab []={ |
---|
| 132 | {"Linear muscle [EXPERIMENTAL!]",1, 1 ,"LMu",}, |
---|
[1109] | 133 | {"p",0,0,"power","f 0.0 1.0 1.0",FIELD(power),}, |
---|
[109] | 134 | {0,0,0,},}; |
---|
| 135 | #undef FIELDSTRUCT |
---|
| 136 | |
---|
| 137 | #define FIELDSTRUCT NI_WaterDetect |
---|
| 138 | ParamEntry NI_WaterDetect_tab []={ |
---|
| 139 | {"Water detector",1, 0 ,"Water",}, |
---|
| 140 | {0,0,0,},}; |
---|
| 141 | #undef FIELDSTRUCT |
---|
| 142 | |
---|
| 143 | #define FIELDSTRUCT NI_Energy |
---|
| 144 | ParamEntry NI_Energy_tab []={ |
---|
| 145 | {"Energy level",1, 0 ,"Energy",}, |
---|
| 146 | {0,0,0,},}; |
---|
| 147 | #undef FIELDSTRUCT |
---|
| 148 | |
---|
| 149 | #define FIELDSTRUCT NI_Channelize |
---|
| 150 | ParamEntry NI_Channelize_tab []={ |
---|
| 151 | {"Channelize",1, 0 ,"Ch",}, |
---|
| 152 | {0,0,0,},}; |
---|
| 153 | #undef FIELDSTRUCT |
---|
| 154 | |
---|
| 155 | #define FIELDSTRUCT NI_ChMux |
---|
| 156 | ParamEntry NI_ChMux_tab []={ |
---|
| 157 | {"Channel multiplexer",1, 0 ,"ChMux",}, |
---|
| 158 | {0,0,0,},}; |
---|
| 159 | #undef FIELDSTRUCT |
---|
| 160 | |
---|
| 161 | #define FIELDSTRUCT NI_ChSel |
---|
| 162 | ParamEntry 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 |
---|
| 169 | ParamEntry NI_Random_tab []={ |
---|
| 170 | {"Random noise",1, 0 ,"Rnd",}, |
---|
| 171 | {0,0,0,},}; |
---|
| 172 | #undef FIELDSTRUCT |
---|
| 173 | |
---|
| 174 | #define FIELDSTRUCT NI_Sinus |
---|
| 175 | ParamEntry 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 \ |
---|
| 183 | setImplementation("N",new NI_StdNeuron); \ |
---|
| 184 | setImplementation("Nu",new NI_StdUNeuron); \ |
---|
| 185 | setImplementation("G",new NI_Gyro); \ |
---|
[976] | 186 | setImplementation("Gpart",new NI_GyroP); \ |
---|
[109] | 187 | setImplementation("T",new NI_Touch); \ |
---|
[976] | 188 | setImplementation("Tcontact",new NI_TouchC); \ |
---|
| 189 | setImplementation("Tproximity",new NI_TouchP); \ |
---|
[109] | 190 | setImplementation("S",new NI_Smell); \ |
---|
| 191 | setImplementation("*",new NI_Const); \ |
---|
| 192 | setImplementation("|",new NI_BendMuscle); \ |
---|
| 193 | setImplementation("@",new NI_RotMuscle); \ |
---|
[921] | 194 | setImplementation("M",new NI_SolidMuscle); \ |
---|
[109] | 195 | setImplementation("D",new NI_Diff); \ |
---|
| 196 | setImplementation("Fuzzy",new NI_FuzzyNeuro); \ |
---|
| 197 | setImplementation("Sti",new NI_Sticky); \ |
---|
| 198 | setImplementation("LMu",new NI_LinearMuscle); \ |
---|
| 199 | setImplementation("Water",new NI_WaterDetect); \ |
---|
| 200 | setImplementation("Energy",new NI_Energy); \ |
---|
| 201 | setImplementation("Ch",new NI_Channelize); \ |
---|
| 202 | setImplementation("ChMux",new NI_ChMux); \ |
---|
| 203 | setImplementation("ChSel",new NI_ChSel); \ |
---|
| 204 | setImplementation("Rnd",new NI_Random); \ |
---|
| 205 | setImplementation("Sin",new NI_Sinus); \ |
---|
| 206 | |
---|