Skip to main content
  • Description
  • Creates a frequency profile in a selected time interval of a TF file (output in EP file format .p). This profile (.p) can be displayed by erpa.

  • Usage
  • tfavgprofilef [+sqrt] [+sem coef]

    with :

    • option :
    • +sqrt : computes square root of data. If omitted, the profile of data is created.
      +sem coef : computes standard error of the mean (sem) for each point. It outputs 3 files : one file containing mean values (.p suffix), one with mean values + coef * SEM (.sem1.p suffix), and one with mean values - coef * SEM (.sem2.p suffix). For example :
      tfavgprofilef +sem 2
      will create files with 2*SEM values added or substracted to the mean values.

    This program uses an interactive input.The questions are as follows (questions (program) are italic, answers (user) are bold):
    Start latency (ms):
    200
    Stop latency (ms):
    400
    start and stop latencies of the time-window in which tf values will be averaged or summed.
    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 type ≠ 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
    Sum (0) or average (1) :
    1
    0: sum over time of the tf values for each frequency band
    1: average over time of the tf values for each frequency band
    Input file name (with extension) or Enter to quit :
    myfile1.avg.tf
    Output EP file name (without extension):
    myfile1.avg.lat200-400.bl
    Input file name (with extension) or Enter to quit :
    myfile2.avg.tf
    the same processing will be repeated with new files.
    Output EP file name (without extension):
    myfile2.avg.lat200-400.bl
    Input file name 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 files myfile1.avg.lat200-400.bl.p and myfile2.avg.lat200-400.bl.p contain baseline corrected frequency profiles between 200 and 400 ms. Note that the .p extension is generated automatically.

  • Comments


  • Current version
  • 1.09 03-10-2013

  • History
    • 1.00 09-12-2001 (PEA) : 1st documented version.
    • 1.01 04-02-2002 (PEA) : minor modification.
    • 1.02 09-12-2003 (PEA) : adds baseline correction support.
    • 1.03 04-03-2004 (PEA) : fixes EP format header size.
    • 1.04 07-10-2004 (PEA) : adds +sqrt option to compute square root of data.
    • 1.05 13-08-2007 (PEA) : minor modification.
    • 1.06 11-03-2008 (PEA) : removes static allocations.
    • 1.07 07-02-2011 (PEA) : updates to use cmake and free release of Elan.
    • 1.08 10-01-2012 (PEA) : adds the option to create output files with Standard Error of the Mean (+sem).
    • 1.09 03-10-2013 (PEA) : fixes deallocation memory after file creation.


  • Files
  • $ELANPATH/bin/tfavgprofilef

  • See also
  • tfavgprofilet