previous next Up Title Contents

Analysis_Convolution:


File name
AnConvolute.[ch]


Description
This routine creates convoluted signal using the output signals from two EarObjects as inputs. The processed output signal will be monaural or binural (with interleaved channels: LRLRLR) depending upon the format of the two inputsignals, which must both have the same sampling interval. and number of channels. The convolution is defined as (R*S)[j] = sum(j = 0, m - 1) { S[j-k]*R[k]}.


Example parameter file format
 - no parameters



Test program directory
Tests/Analysis

Generic Module Routines

This module has no parameters so it does not need to be initialised, nor require any Set... functions.

The Calc_Analysis_Convolution(...) Process Routine

Syntax
BOOLN Calc_Analysis_Convolution(EarObjectPtr data);


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

Example: Tests/Analysis/Convolute.c

Parameter file: Convolute.par:
#
# Main Parameter file
#

output.dat	Main output file.

# Module specifications.

#Par. file		Name			Description
#---------		-----			-------------
Click1.par		Click			Stimulus generation paradigm.
PTone1.par		PureTone		Stimulus generation paradigm.
GammaT1.par		null			Basilar membrane filter model.

# Miscellaneous parameters

2		Number of input EarObjects for test EarObject
2.5e-3	Ramp up rise time for signal (s).
Output

Figure [35] Output for convolution test.

Comments:

It is possible to change the number of EarObjects the convultion module will accept as input, to test that it will give an error message when insuffient connections are made. The output should contain a pure tone which begins at the click position. The output is given in the form:

time (s), convolution.


previous next Up Title Contents