def filter_interval_tensor(sample, interval, data_frequency, apply_indices=[0]):
    """Cut out a specific interval from a sample of EEG-Data.
    
    :param sample: sample consisitng of channel_number * data_points
    :type sample: tensor
    :param interval: two values specifying the starting and end point in
        seconds of the interval to be cut out.
        Each sample consists of a 4.5 second EEG-data window.
        These 4.5 seconds consist of:
        Concentration Interval - 0.5 s
        Cue Interval - 0.5 s
        Action Interval - 2.5 s
        Relac Interval - 1 s
    :type interval: list of two floating point numbers
    :param data_frequency: specifies the frequency the provided data was
        measured at
    :type data_frequency: floating point number
    :param apply_indices: specifies on what elemtents of sample to apply the
        function, defaults to [0]
    :type apply_indices: list of integers, optional
    :return: cut sample
    :rtype: tensor
    """
    sample = list(sample)
    start_index_interval = int(interval[0] * data_frequency)
    end_index_interval = int(interval[1] * data_frequency)
    for index in apply_indices:
        sample[index] = sample[index][:, start_index_interval:end_index_interval]
    return sample