tfceFn: Low-level TFCE function which calls C++ code

Description Usage Arguments Value Author(s)

View source: R/matstat.R

Description

tfceFn performs TFCE correction. This function is not intended for direct use.

Usage

1
2
3
4
5
6
7
8
9
tfceFn(
  x,
  chn,
  eh,
  nr_steps = 50L,
  channel_dim = 1L,
  has_neg = TRUE,
  has_pos = TRUE
)

Arguments

x

numeric matrix or array

chn

channel neighbourhood matrix

eh

numeric vector of E and H parameters

nr_steps

number of threshold steps (default: 50L)

channel_dim

the dimension of x which represents channels (default: 1L)

has_neg

logical value if there are (or can be) negative values in x (default: TRUE)

has_pos

logical value if there are (or can be) positive values in x (default: TRUE)

Value

numeric matrix or array of the same dimensions as x

Author(s)

The original C code was written by Christian Gaser, further modified by Pau Coma and adopted to EEG analysis by Armand Mensen. Denes Toth ported the C code to C++ (Rcpp) with minor improvements and added the R wrapper.


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