centroid: Compute centroids

Description Usage Arguments Value

View source: R/erp_preprocess.R

Description

centroid computes the centroids (separately for the negative and positive values)

Usage

1
centroid(dat, ch_pos, proj2map = TRUE, proj_unitsphere = FALSE, ...)

Arguments

dat

numeric vector of amplitudes at a given sampling point

ch_pos

matrix or data.frame containing channel positions (in the same order as dat), see coordinates

proj2map

logical value; if TRUE (default), the centroids are projected onto a 2D plane

proj_unitsphere

logical value; if TRUE, and proj2map is also TRUE, the projection assumes unit radius

...

additional parameters to project3dMap

Value

A data.frame containing the positions of the negative and positive centroids


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