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