Description Usage Arguments Details Value Author(s)
View source: R/extractGroups.R
This function allows to extract from a list containing sample covariance matrices the ones of the same group. It takes into consideration only two possible groups, labelled by 0 and 1.
1 | extractGroups(list, dataset, events=1)
|
list |
a list of sample covariance matrices to be divided in groups. |
dataset |
the dataset of reference. It has to be constructed in a specific manner. See Details below. |
events |
numeric value: 0 or 1. It is the label of the group to be extracted. |
The dataset
must have a specific construction: it must be a list in which every element is a list itself with two main elements, $epochs
and $labels
.
$epochs
contains tensors with dimensions [n,c,t]
, where n are the number of epochs, c are the number of channels and t is the recording (epoch) length.
$labels
contains the class of the epochs considered (i.e. target or non target).
It returns a list containing only the SCMs that are part of the group identified by events
.
Laura Masiero, email: laura.masiero.10@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.