[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 | |
---|
| 41 | #define FIELDSTRUCT NI_Touch |
---|
| 42 | ParamEntry 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 |
---|
| 49 | ParamEntry NI_Smell_tab []={ |
---|
| 50 | {"Smell",1, 0 ,"S",}, |
---|
| 51 | {0,0,0,},}; |
---|
| 52 | #undef FIELDSTRUCT |
---|
| 53 | |
---|
| 54 | #define FIELDSTRUCT NI_Const |
---|
| 55 | ParamEntry NI_Const_tab []={ |
---|
| 56 | {"Constant",1, 0 ,"*",}, |
---|
| 57 | {0,0,0,},}; |
---|
| 58 | #undef FIELDSTRUCT |
---|
| 59 | |
---|
| 60 | #define FIELDSTRUCT NI_BendMuscle |
---|
| 61 | ParamEntry 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 |
---|
| 69 | ParamEntry 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 | |
---|
[921] | 75 | #define FIELDSTRUCT NI_SolidMuscle |
---|
| 76 | ParamEntry 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 | |
---|
[109] | 83 | #define FIELDSTRUCT NI_Diff |
---|
| 84 | ParamEntry NI_Diff_tab []={ |
---|
| 85 | {"Differentiate",1, 0 ,"D",}, |
---|
| 86 | {0,0,0,},}; |
---|
| 87 | #undef FIELDSTRUCT |
---|
| 88 | |
---|
| 89 | #define FIELDSTRUCT NI_FuzzyNeuro |
---|
| 90 | ParamEntry 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),}, |
---|
[419] | 94 | {"fs",0,0,"fuzzy sets","s 0 -1 ",FIELD(fuzzySetString),}, |
---|
| 95 | {"fr",0,0,"fuzzy rules","s 0 -1 ",FIELD(fuzzyRulesString),}, |
---|
[109] | 96 | {0,0,0,},}; |
---|
| 97 | #undef FIELDSTRUCT |
---|
| 98 | |
---|
| 99 | #define FIELDSTRUCT NI_Sticky |
---|
| 100 | ParamEntry NI_Sticky_tab []={ |
---|
| 101 | {"Sticky [EXPERIMENTAL!]",1, 0 ,"Sti",}, |
---|
| 102 | {0,0,0,},}; |
---|
| 103 | #undef FIELDSTRUCT |
---|
| 104 | |
---|
| 105 | #define FIELDSTRUCT NI_LinearMuscle |
---|
| 106 | ParamEntry 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 |
---|
| 113 | ParamEntry NI_WaterDetect_tab []={ |
---|
| 114 | {"Water detector",1, 0 ,"Water",}, |
---|
| 115 | {0,0,0,},}; |
---|
| 116 | #undef FIELDSTRUCT |
---|
| 117 | |
---|
| 118 | #define FIELDSTRUCT NI_Energy |
---|
| 119 | ParamEntry NI_Energy_tab []={ |
---|
| 120 | {"Energy level",1, 0 ,"Energy",}, |
---|
| 121 | {0,0,0,},}; |
---|
| 122 | #undef FIELDSTRUCT |
---|
| 123 | |
---|
| 124 | #define FIELDSTRUCT NI_Channelize |
---|
| 125 | ParamEntry NI_Channelize_tab []={ |
---|
| 126 | {"Channelize",1, 0 ,"Ch",}, |
---|
| 127 | {0,0,0,},}; |
---|
| 128 | #undef FIELDSTRUCT |
---|
| 129 | |
---|
| 130 | #define FIELDSTRUCT NI_ChMux |
---|
| 131 | ParamEntry NI_ChMux_tab []={ |
---|
| 132 | {"Channel multiplexer",1, 0 ,"ChMux",}, |
---|
| 133 | {0,0,0,},}; |
---|
| 134 | #undef FIELDSTRUCT |
---|
| 135 | |
---|
| 136 | #define FIELDSTRUCT NI_ChSel |
---|
| 137 | ParamEntry 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 |
---|
| 144 | ParamEntry NI_Random_tab []={ |
---|
| 145 | {"Random noise",1, 0 ,"Rnd",}, |
---|
| 146 | {0,0,0,},}; |
---|
| 147 | #undef FIELDSTRUCT |
---|
| 148 | |
---|
| 149 | #define FIELDSTRUCT NI_Sinus |
---|
| 150 | ParamEntry 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 \ |
---|
| 158 | setImplementation("N",new NI_StdNeuron); \ |
---|
| 159 | setImplementation("Nu",new NI_StdUNeuron); \ |
---|
| 160 | setImplementation("G",new NI_Gyro); \ |
---|
| 161 | setImplementation("T",new NI_Touch); \ |
---|
| 162 | setImplementation("S",new NI_Smell); \ |
---|
| 163 | setImplementation("*",new NI_Const); \ |
---|
| 164 | setImplementation("|",new NI_BendMuscle); \ |
---|
| 165 | setImplementation("@",new NI_RotMuscle); \ |
---|
[921] | 166 | setImplementation("M",new NI_SolidMuscle); \ |
---|
[109] | 167 | setImplementation("D",new NI_Diff); \ |
---|
| 168 | setImplementation("Fuzzy",new NI_FuzzyNeuro); \ |
---|
| 169 | setImplementation("Sti",new NI_Sticky); \ |
---|
| 170 | setImplementation("LMu",new NI_LinearMuscle); \ |
---|
| 171 | setImplementation("Water",new NI_WaterDetect); \ |
---|
| 172 | setImplementation("Energy",new NI_Energy); \ |
---|
| 173 | setImplementation("Ch",new NI_Channelize); \ |
---|
| 174 | setImplementation("ChMux",new NI_ChMux); \ |
---|
| 175 | setImplementation("ChSel",new NI_ChSel); \ |
---|
| 176 | setImplementation("Rnd",new NI_Random); \ |
---|
| 177 | setImplementation("Sin",new NI_Sinus); \ |
---|
| 178 | |
---|