def __create_weights(self, stimulus):
self.__average_distance = average_neighbor_distance(stimulus, self.__amount_neighbors)<EOL>self.__weights = [ [ <NUM_LIT:0.0> for _ in range(len(stimulus)) ] for _ in range(len(stimulus)) ]<EOL>self.__weights_summary = [ <NUM_LIT:0.0> for _ in range(self.__num_osc) ]<EOL>if self.__conn_type == type_conn.ALL_TO_ALL:<EOL><INDENT>self.__create_weights_all_to_all(stimulus)<EOL><DEDENT>elif self.__conn_type == type_conn.TRIANGULATION_DELAUNAY:<EOL><INDENT>self.__create_weights_delaunay_triangulation(stimulus)<EOL><DEDENT>
!
        @brief Create weights between neurons in line with stimulus.

        @param[in] stimulus (list): External stimulus for the chaotic neural network.