/// <summary> /// Заполняет массив внутреннего состояния сети случайными данными (от 0 до 1 с шагом 0,01) /// </summary> public void Add_RNN() { for (int i = 0; i < razmer_data_in; i++) { state_RNN[i] = System.Convert.ToDouble(Generation_Math.GenerateDigit_100()) / 100; } }
public void Add_bias_1() { for (int j = 0; j < razmer_layer_2_in; j++) { bias1[j] = System.Convert.ToDouble(Generation_Math.GenerateDigit_100()) / 100; } }
public void Add_weight_2() { for (int i = 0; i < razmer_layer_2_in; i++) { for (int j = 0; j < razmer_layer_1_in; j++) { weight_2[i, j] = System.Convert.ToDouble(Generation_Math.GenerateDigit_100()) / 100; } } }
public void Add_state_Matrix_RNN() { for (int i = 0; i < razmer_layer_1_in; i++) { for (int j = 0; j < razmer_data_in; j++) { state_Matrix_RNN[i, j] = System.Convert.ToDouble(Generation_Math.GenerateDigit_100()) / 100; } } }
/// <summary> /// Сгенерировать первый элемент последовательности /// </summary> internal void Generation_element_1() { element = Generation_Math.GenerateDigit_10(); second_element = first_element; switch (element) { case 1: first_element = '1'; break; case 2: first_element = '2'; break; case 3: first_element = '3'; break; case 4: first_element = '4'; break; case 5: first_element = '5'; break; case 6: first_element = '6'; break; case 7: first_element = '7'; break; case 8: first_element = '8'; break; case 9: first_element = '9'; break; case 0: first_element = '('; counter_brackets++; break; default: break; } }
/// <summary> /// Сгенерировать элемент после закрытой скобки /// </summary> internal void Generation_Numeral_After_Close_Bracket() { element = Generation_Math.GenerateDigitBorder(6); second_element = first_element; switch (element) { case 1: first_element = '+'; break; case 2: first_element = '-'; break; case 3: first_element = '*'; break; case 4: first_element = '/'; break; case 5: first_element = '^'; break; case 0: first_element = ')'; counter_brackets--; break; default: break; } }
/// <summary> /// Сгенерировать элемент последовательности если нет открытых скобок /// </summary> internal void Generation_Numeral_After_Numeral_No_Bracket() { element = Generation_Math.GenerateDigitBorder(15); second_element = first_element; switch (element) { case 0: first_element = '0'; break; case 1: first_element = '1'; break; case 2: first_element = '2'; break; case 3: first_element = '3'; break; case 4: first_element = '4'; break; case 5: first_element = '5'; break; case 6: first_element = '6'; break; case 7: first_element = '7'; break; case 8: first_element = '8'; break; case 9: first_element = '9'; break; case 10: first_element = '+'; break; case 11: first_element = '-'; break; case 12: first_element = '*'; break; case 13: first_element = '/'; break; case 14: first_element = '^'; break; default: break; } }