def mean(data, window_size):
    """Get the data mean according to the window size.

    :param data: A list of values.
    :param window_size: A window size.
    :return: The mean value.
    """
    return float(sum(data)) / window_size