previous next Up Title Contents

Analysis_Intensity:


File name
AnIntensity.[ch]


Description
This routine calculates the intensities for each channel of the process EarObject's input signal. The result for each channel is output in the respective first sample of the output signal in dB SPL. The intensity is calculation starts from the offsetTime (s).


Example parameter file format
0.0	Time from which to start calculation (s).



Test program directory
Tests/Analysis

Generic Module Routines

This module has the standard Generic Module Routines (see Basic Module Routines used in Generic Programming, page 52).

The Calc_Analysis_Intensity(...) Process Routine

Syntax
BOOLN Calc_Analysis_Intensity(EarObjectPtr data);


Returns
TRUE if the process is successful, otherwise it returns FALSE.

The SetPars_Analysis_Intensity(...) Routine

Syntax
BOOLN SetPars_Analysis_Intensity(double timeOffset);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetTimeOffset_Analysis_Intensity(...) Routine

Syntax
BOOLN SetTimeOffset_Analysis_Intensity(double theTimeOffset);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

Example: Tests/Analysis/Intensity.c

Parameter file: Intensity.par:
#
# Main Parameter file
#
output.dat		Name of stimulus output file.
#
# Module specifications.
#
#Par. file		Name			Description
#---------		-----			-------------
PTone4.par		PureTone		Stimulus generation paradigm.

Intens1.par	Intensity analysis module parameter file.

Output

Figure [44] Output listing for the Intensity.c test program.

Comments:

This module is also used in many of the other test programs, as well as in some of the other modules.


previous next Up Title Contents