Skip to main content
  • Description
  • Computes the mean TF value or the maximum TF value and the corresponding latency and frequency of an .tf file in a given time-frequency window (output in a text file or on screen). This allows to export measurements for statistical analysis from a group of subjects and for different experimental conditions in a given time-frequency window.

  • Usage
  • tfavgval

    This program uses an interactive input.The questions are as follows (questions (program) are italic, answers (user) are bold):
    Mean (1) or maximum (2) value?
    2
    1: computes the mean value in a time-frequency window
    2: detects the maximum value, its latency and its frequency, in a time-frequency window
    Start latency (in ms) :
    200
    Stop latency (in ms) :
    400
    Start frequency (in Hz) :
    20
    Stop frequency (in Hz) :
    34
    the time-frequency measurement window is defined by these 4 parameters.
    Baseline correction: none (0), mean (1) or median (2) in a time-window ? (0/1/2) :
    1
    0: no baseline correction
    1: the mean value between start and stop latencies will be used
    2: the median value between start and stop latencies will be used
    if baseline correction ≠ 0
    Start latency of baseline (in ms) :
    -400
    Stop latency of baseline (in ms) :
    -100
    Substract(1) or divide(2) by baseline ? (1/2)
    1
    1: the baseline value is substracted from the original data
    2: the original data are divided by the baseline value
    Input file name (with extension) or Enter to quit :
    myfile1.avg.tf
    Output file name (Return = display on screen only) :
    myfile1.txt
    Label (common to all channels in output file):
    mylabel1
    Input file name (with extension) or Enter to quit :
    myfile2.avg.tf
    the same processing will be repeated with new files.
    Output file name (Return = display on screen only) :
    myfile2.txt
    Label (common to all channels in output file):
    mylabel2
    Input file name (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
  • The above example will output myfile1.txt and myfile2.txt.
    Content of myfile1.txt:
    Baseline correction :
    latency –400.0 to –200.0 ms
    Correction type : substract the mean value of baseline
    #label #chan #latency #frequency #value #boundary
    mylabel1 Cz 200.00 20.00 18.5436 1
    mylabel2 O1 234.00 22.00 23.5673 0
    ….

    Boundary-flag to 1 means that the time-frequency window boundaries were reached when searching for the maximum time-frequency value at this electrode. The detected maximum is thus not reliable.


  • Comments

  • Current version
  • 1.05 11-02-2011

  • History
    • 1.00 09-12-2001 (PEA) : 1st documented version.
    • 1.01 04-02-2002 (PEA) : minor modification.
    • 1.02 20-02-2002 (PEA) : fixes ROI display.
    • 1.03 17-05-2002 (PEA) : minor modification.
    • 1.04 13-08-2007 (PEA) : minor modification.
    • 1.05 11-02-2011 (PEA) : updates to use cmake and free release of Elan. Adds title to the output file before data.


  • Files
  • $ELANPATH/bin/tfavgval

  • See also