Skip to main content
  • Description
  • Computes the grand-average across-channels of a TF file (output file in TF format).

  • Usage
  • tfavgchannel

    This program uses an interactive input.The questions are as follows (questions (program) are italic, answers (user) are bold):
    Number of channels to average or to sum (0 for all electrodes) :
    4
    Channel rank # 1 :
    22
    (channel rank starting from #1)
    Channel rank # 2 :
    6
    Channel rank # 3 :
    11
    Channel rank # 4 :
    12
    Channel average (a) or sum (s) ?
    a
    a: average of the tf of the selected channels
    s: sum of the tf of the selected channels
    Name of TF file to process (with extension) or Enter to quit :
    myfile.avg.tf
    Name of the TF file with summed or averaged channels (with extension) :
    myfile.4ch.avg.tf
    Name of TF file to process (with extension) or Enter to quit :
    (return)
    A new .tf file can be processed with the same parameters, or the return key terminates the program.


  • Fields of parameter file and example

  • Examples
  • In this example, the output file myfile.4ch.avg.tf contains only one channel corresponding to the average of channels 22, 6, 11, 12 of myfile.avg.tf. The single resulting averaged channel of myfile.4ch.avg.tf is labelled with the name of first channel (i.e., #22) of myfile.avg.tf. The list of averaged channels is stored in myfile.4ch.avg.tf header and can be displayed using tfavgread.

  • Comments


  • Current version
  • 1.03 03-02-2011

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


  • Files
  • $ELANPATH/bin/tfavgchannel

  • See also