Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
util.h
00001 // tamaño de la base de datos 00002 struct datos{ 00003 00004 //filas y columnas 00005 const int fi; 00006 const int co; 00007 00008 // cantidad de clases 00009 const int clases; 00010 00011 // clases de la base de datos en alfanumerico 00012 String clasesSt = {"Setosa", "Versicolor", "Virginica"}; 00013 00014 // atributos: conjunto de entrenamiento 00015 String nomAtr[CO]={"Largo sepalo", "Ancho sepalo", "Largo petalo", "Ancho petalo"}; 00016 00017 double atributos[FI][CO] = { 00018 {4.4, 3, 1.3, 0.2}, 00019 {7.6, 3, 6.6, 2.1}, 00020 {6.5, 2.8, 4.6, 1.5}, 00021 {5.6, 2.8, 4.9, 2}, 00022 {7.2, 3, 5.8, 1.6}, 00023 {5.5, 2.3, 4, 1.3}, 00024 {5, 2, 3.5, 1}, 00025 {5.5, 2.4, 3.8, 1.1}, 00026 {5.4, 3.9, 1.7, 0.4}, 00027 {5.5, 4.2, 1.4, 0.2}, 00028 {5.8, 2.8, 5.1, 2.4}, 00029 {4.6, 3.6, 1, 0.2}, 00030 {4.8, 3.1, 1.6, 0.2}, 00031 {6.9, 3.1, 4.9, 1.5}, 00032 {5.8, 2.7, 5.1, 1.9}, 00033 {5.7, 3.8, 1.7, 0.3}, 00034 {6.4, 2.8, 5.6, 2.2}, 00035 {6.1, 2.6, 5.6, 1.4}, 00036 {6, 3.4, 4.5, 1.6}, 00037 {6.7, 3.1, 4.7, 1.5}, 00038 {5.1, 3.5, 1.4, 0.2}, 00039 {6.3, 2.8, 5.1, 1.5}, 00040 {6.3, 2.9, 5.6, 1.8}, 00041 {6.7, 3.3, 5.7, 2.1}, 00042 {4.9, 3, 1.4, 0.2}, 00043 {6.9, 3.2, 5.7, 2.3}, 00044 {5, 3.5, 1.6, 0.6}, 00045 {5.1, 2.5, 3, 1.1}, 00046 {4.8, 3, 1.4, 0.3}, 00047 {7, 3.2, 4.7, 1.4}, 00048 {6.3, 3.3, 4.7, 1.6}, 00049 {5.4, 3.9, 1.3, 0.4}, 00050 {5.7, 2.6, 3.5, 1}, 00051 {6.7, 3.3, 5.7, 2.5}, 00052 {7.7, 2.6, 6.9, 2.3}, 00053 {6, 2.7, 5.1, 1.6}, 00054 {5.6, 2.7, 4.2, 1.3}, 00055 {6.4, 3.1, 5.5, 1.8}, 00056 {4.9, 3.1, 1.5, 0.1}, 00057 {5.2, 4.1, 1.5, 0.1}, 00058 {4.3, 3, 1.1, 0.1}, 00059 {5, 2.3, 3.3, 1}, 00060 {5.8, 4, 1.2, 0.2}, 00061 {6.3, 2.3, 4.4, 1.3}, 00062 {6.2, 2.8, 4.8, 1.8}, 00063 {5.5, 2.6, 4.4, 1.2}, 00064 {6.7, 2.5, 5.8, 1.8}, 00065 {6.7, 3, 5, 1.7}, 00066 {6.8, 2.8, 4.8, 1.4}, 00067 {6.3, 3.4, 5.6, 2.4}, 00068 {6.2, 2.2, 4.5, 1.5}, 00069 {5.4, 3, 4.5, 1.5}, 00070 {6.5, 3, 5.2, 2}, 00071 {6.2, 2.9, 4.3, 1.3}, 00072 {5.1, 3.3, 1.7, 0.5}, 00073 {4.8, 3, 1.4, 0.1}, 00074 {6, 2.2, 5, 1.5}, 00075 {5.2, 2.7, 3.9, 1.4}, 00076 {7.7, 3.8, 6.7, 2.2}, 00077 {5.9, 3, 5.1, 1.8}, 00078 {6.3, 3.3, 6, 2.5}, 00079 {5, 3.4, 1.5, 0.2}, 00080 {6.7, 3, 5.2, 2.3}, 00081 {6.4, 2.8, 5.6, 2.1}, 00082 {5.2, 3.4, 1.4, 0.2}, 00083 {5.1, 3.4, 1.5, 0.2}, 00084 {5.1, 3.8, 1.9, 0.4}, 00085 {5.4, 3.7, 1.5, 0.2}, 00086 {5.6, 2.5, 3.9, 1.1}, 00087 {5.7, 3, 4.2, 1.2}, 00088 {5, 3.3, 1.4, 0.2}, 00089 {6.5, 3, 5.5, 1.8}, 00090 {5.3, 3.7, 1.5, 0.2}, 00091 {4.8, 3.4, 1.9, 0.2}, 00092 {6.7, 3.1, 4.4, 1.4}, 00093 {6.5, 3.2, 5.1, 2}, 00094 {4.5, 2.3, 1.3, 0.3}, 00095 {7.2, 3.2, 6, 1.8}, 00096 {5.1, 3.8, 1.6, 0.2}, 00097 {7.1, 3, 5.9, 2.1}, 00098 {6, 2.9, 4.5, 1.5}, 00099 {6.4, 3.2, 4.5, 1.5}, 00100 {4.7, 3.2, 1.6, 0.2}, 00101 {6.4, 2.7, 5.3, 1.9}, 00102 {6.8, 3.2, 5.9, 2.3}, 00103 {5, 3.5, 1.3, 0.3}, 00104 {6.9, 3.1, 5.1, 2.3}, 00105 {5.5, 2.5, 4, 1.3}, 00106 {5.7, 4.4, 1.5, 0.4}, 00107 {4.6, 3.1, 1.5, 0.2}, 00108 {4.9, 3.1, 1.5, 0.1}, 00109 {5.6, 3, 4.5, 1.5}, 00110 {5.6, 3, 4.1, 1.3}, 00111 {4.7, 3.2, 1.3, 0.2}, 00112 {5, 3.2, 1.2, 0.2}, 00113 {7.7, 2.8, 6.7, 2}, 00114 {5.7, 2.8, 4.5, 1.3}, 00115 {5.4, 3.4, 1.5, 0.4}, 00116 {4.6, 3.2, 1.4, 0.2}}; 00117 00118 int clasesNo[FI] = { 00119 0, 00120 2, 00121 1, 00122 2, 00123 2, 00124 1, 00125 1, 00126 1, 00127 0, 00128 0, 00129 2, 00130 0, 00131 0, 00132 1, 00133 2, 00134 0, 00135 2, 00136 2, 00137 1, 00138 1, 00139 0, 00140 2, 00141 2, 00142 2, 00143 0, 00144 2, 00145 0, 00146 1, 00147 0, 00148 1, 00149 1, 00150 0, 00151 1, 00152 2, 00153 2, 00154 1, 00155 1, 00156 2, 00157 0, 00158 0, 00159 0, 00160 1, 00161 0, 00162 1, 00163 2, 00164 1, 00165 2, 00166 1, 00167 1, 00168 2, 00169 1, 00170 1, 00171 2, 00172 1, 00173 0, 00174 0, 00175 2, 00176 1, 00177 2, 00178 2, 00179 2, 00180 0, 00181 2, 00182 2, 00183 0, 00184 0, 00185 0, 00186 0, 00187 1, 00188 1, 00189 0, 00190 2, 00191 0, 00192 0, 00193 1, 00194 2, 00195 0, 00196 2, 00197 0, 00198 2, 00199 1, 00200 1, 00201 0, 00202 2, 00203 2, 00204 0, 00205 2, 00206 1, 00207 0, 00208 0, 00209 0, 00210 1, 00211 1, 00212 0, 00213 0, 00214 2, 00215 1, 00216 0, 00217 0}; 00218 }; 00219 00220 00221 00222 00223 00224
Generated on Sun Jul 17 2022 10:16:44 by
1.7.2