#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# generate_gaze_data.py

"""
Generate specific idealized gaze patterns for several subjects to use them
as benchmark for the different coherence algorithms.

All functions return a sequence of n elements. Each element is a nx3
np.array containing the (x, y, t) data points for one subject.

Time is given in micro seconds (us).

"""

import pickle

import numpy as np

SCREEN_RES = (1280, 720)
SAMPLING_RATE = 50 #Hz
DELTA_T = 1./float(SAMPLING_RATE) * 1000000
SD_NOISE = 5

def random_coherent_random(n, dt, t1, t2):
    """
    generate random coherent random data.

    Parameters
    ----------
    n : integer
        number of subjects
    dt : float
        time intervall in micro seconds
    t1 : float
        point in time where coherent phase begins
    t2 : float
        point in time where coherent phase ends

    Returns
    -------
    subjects : sequence of np.arrays

    """