U
    !Ŗ`¤  ć                   @   s   d dl Z d dlZdd ZdS )é    Nc           	      C   s¬  t  ddd”}d}|dkr*dddd	d
g}nddd	d
g}t |”}|dkrft j dd”}t j dd”}n¾|dkrt j dd”}t j dd”}n|dkr²t j dd”}t j dd”}nr|dkrŲt j dd”}t j dd”}nL|d	kržt j dd”}t j dd”}n&|d
kr$t j dd”}t j dd”}dt  || d  d|d   ”t  || d  d|d   ”  d }|| d dddf< d| d dddf< d| d dddf< | S )a©   This function chooses an input sound and changes the activations 
            on the input layer accordingly
        
        Parameters:
        ----------
        new_nodes: an array containing the node activations and biases 
        vowel_system: a string stating the needed amount of vowels
        
        Returns:
        --------
        new_nodes: an array containing the node activations and biases 
        
    é   é   é1   gĆõ(\Āå?ŚfiveŚaŚeŚiŚoŚuZeié   é   é   é
   é   g      !@g     7@é   é   é   g      @é   g      ą?r   Ng        )ŚnpŚlinspaceŚrandomŚchoiceŚnormalŚexp)	Ś	new_nodesZvowel_systemZerbZ
bumb_widthZsoundsZ
step_inputŚf1Śf2Zactivity© r   śfc:\Users\roric\OneDrive - UvA\Linguistics\Year 3\Major\Thesis\echolearnedRBM\setup_input\five_input.pyŚinput_vowels   s:    

Hr   )r   Śnumpyr   r   r   r   r   r   Ś<module>   s   