def make_arousals(events, time, s_freq):
    """Create dict for each arousal, based on events of time points.

    Parameters
    ----------
    events : ndarray (dtype='int')
        N x 5 matrix with start, end samples
    data : ndarray (dtype='float')
        vector with the data
    time : ndarray (dtype='float')
        vector with time points
    s_freq : float
        sampling frequency

    Returns
    -------
    list of dict
        list of all the arousals, with information about start, end, 
        duration (s),
    """
    arousals = []
    for ev in events:
        one_ar = {'start': time[ev[0]],
                  'end': time[ev[1] - 1],
                  'dur': (ev[1] - ev[0]) / s_freq,
                  }
        arousals.append(one_ar)

    return arousals