supereeg.create_cov

supereeg.create_cov(cov, n_elecs=10)[source]

Creates covariance matrix of specified type

Parameters:
cov : str or np.array

The covariance structure of the data.

If ‘eye’, the covariance will be the identity matrix.

If ‘toeplitz’, the covariance will be a toeplitz matrix.

If ‘random’, uses a random semidefinite matrix with a set random seed.

If ‘distance’calculates the euclidean distance between each electrode.

You can also pass a custom covariance matrix by simply passing numpy array that is n_elecs by n_elecs.

n_elecs : int

Number of electrodes

Returns:
R : np.ndarray

Numpy array containing the covariance structure in the specified dimension (n_elecs x n_elecs)