Skip to main content
  • Description
  • Computes the grand-average of tf files. Output file in tf format (*.avg.tf). The averaged files must have compatible headers (same channels, same frequency list, same time-window, etc…).

  • Usage
  • tfavgavg [+force]
    with :

    • option :
    • +force : no test of compatibility on the electrode numbers.

    This program uses an interactive input.The questions are as follows (questions (program) are italic, answers (user) are bold):
    Weigthing with number of averaged trials (y/n) ?
    y
    y: the number of trials averaged in each tf file is used to weight the grand-average
    n: each tf file has the same weight in the grand-average.
    Number of TF files to average:
    3
    Baseline correction: none (0), mean (1) or median (2) in a time-window (0/1/2) :
    1
    Start latency for baseline correction (in ms) :
    -400
    Stop latency of baseline correction (in ms) :
    -100
    Name of TF file # 1 (with extension) :
    myfile1.avg.tf
    Name of TF file # 2 (with extension) :
    myfile2.avg.tf
    Name of TF file # 3 (with extension) :
    myfile3.avg.tf
    Name of the averaged TF file (with extension) :
    myfile.grand.avg.tf

  • Fields of parameter file and example

  • Examples
  • In this example, myfile.grand.avg.tf contains the baseline-corrected weighted average.

  • Comments


  • Current version
  • 1.04 02-02-2011

  • History
    • 1.00 09-12-2001 (PEA) : 1st documented version.
    • 1.01 04-02-2002 (PEA) : minor modification.
    • 1.02 17-12-2003 (PEA) : adds +force option.
    • 1.03 13-08-2007 (PEA) : minor modification.
    • 1.04 02-02-2011 (PEA) : updates to use cmake and free release of Elan. Removes static allocations.


  • Files
  • $ELANPATH/bin/tfavgavg

  • See also
  • tfavgdiff