public string Start(List <Neyron_DB.object_s> buffer) { string arg_return = ""; int step_by = 0; //int this_way = 1; int step_id = id_way[step_by][0]; int id_neyron = id_way[step_by][1]; Neyron_DB.object_s obj = buffer[id_neyron]; neyron_ <int> n = obj.Neyron as neyron_ <int>; //bool its_end = false; while (true) { step_id = id_way[step_by][0]; id_neyron = id_way[step_by][1]; if (id_neyron == -1 || step_id == -1) { //its_end = true; break; } int[] limits = limit_value[step_id]; int[,] elements = id_element[step_id]; int k = 0; int q = 0; for (int i = 0; i < limits.Length; i++) { k = 0; for (int e = 0; e < elements.Length / limits.Length; e++) { // + neyrons__.summ k += n.width[elements[i, e]]; } if (k >= limits[i]) { q++; } } if (q >= limits.Length) { obj = buffer[id_neyron]; step_by++; } else { break; } } arg_return += "last ways: '" + buffer[step_by].name_neyron + "'"; return(arg_return); }
public int __search_index_neyron(neyron_ <string> n) { for (int i = 0; i < neyrn_s__string.Count; i++) { if (n == neyrn_s__string[i]) { return(i); } } return(-1); }
public int __search_index_neyron(neyron_ <double> n__) { for (int i = 0; i < neyrn_s__double.Count; i++) { if (n__ == neyrn_s__double[i]) { return(i); } } return(-1); }
public void re_string_neyrs(neyron_ <string> d_n, int i) { neyrn_s__string[i] = d_n; }
public void re_int_neyrs(neyron_ <int> d_n, int i) { neyrn_s__int[i] = d_n; }
public void re_double_neyrs(neyron_ <double> d_n, int i) { neyrn_s__double[i] = d_n; }