def __create_dynamic_connections(self):
if (self._stimulus is None):<EOL><INDENT>raise NameError("<STR_LIT>");<EOL><DEDENT>self._dynamic_coupling = [ [<NUM_LIT:0>] * self._num_osc for i in range(self._num_osc)];<EOL>for i in range(self._num_osc):<EOL><INDENT>neighbors = self.get_neighbors(i);<EOL>if ( (len(neighbors) > <NUM_LIT:0>) and (self._stimulus[i] > <NUM_LIT:0>) ):<EOL><INDENT>number_stimulated_neighbors = <NUM_LIT:0.0>;<EOL>for j in neighbors:<EOL><INDENT>if (self._stimulus[j] > <NUM_LIT:0>):<EOL><INDENT>number_stimulated_neighbors += <NUM_LIT:1.0>;<EOL><DEDENT><DEDENT>if (number_stimulated_neighbors > <NUM_LIT:0>):<EOL><INDENT>dynamic_weight = self._params.Wt / number_stimulated_neighbors;<EOL>for j in neighbors:<EOL><INDENT>self._dynamic_coupling[i][j] = dynamic_weight;<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
!
        @brief Create dynamic connection in line with input stimulus.