compGfp: Compute Global Field Power

Description Usage Arguments Value

View source: R/erp_preprocess.R

Description

compGfp computes Global Field Power (the standard deviation of channel values for each sampling point)

Usage

1
compGfp(dat, keep_channels = FALSE, channel_dim = "chan")

Arguments

dat

numeric matrix or array, usually with named dimensions (one of which is "chan")

keep_channels

logical value; if TRUE, the original channels are retained, and the GFP values are added with channel code "GFP" (default = FALSE)

channel_dim

a character value or numeric index indicating the channel dimension of dat (default: "chan")

Value

The function returns a matrix or an array. Note that if the original channels are not retained, the channel dimension is dropped.


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.