extractGroups: Extracting SCMs of the same group from a list

Description Usage Arguments Details Value Author(s)

View source: R/extractGroups.R

Description

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.

Usage

1
extractGroups(list, dataset, events=1)

Arguments

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.

Details

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).

Value

It returns a list containing only the SCMs that are part of the group identified by events.

Author(s)

Laura Masiero, email: laura.masiero.10@gmail.com


LauraMasiero/RiemannR documentation built on Sept. 29, 2020, 9:51 p.m.