previous next Up Title Contents

Utility_BinSignal: Collect A Signal Into Bins


File name
UtBinSignal.[ch]


Description
This module generates a binned histogram from the EarObject's input signal. It adds to previous data if the output signal has already been used. It will continue adding to the previuos data unless the process is resetsee section 0 Accumulating Data with Process Modules.


Example parameter file format
1.0e-3	Bin width for binned signal (s).



Test program directory
Tests/Utilities

Generic Module Routines

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

The Process_Utility_BinSignal(...) Process Routine

Syntax
BOOLN Process_Utility_BinSignal(EarObjectPtr data);


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

The SetBinWidth_Utility_BinSignal(...) Routine

Syntax
BOOLN SetBinWidth_Utility_BinSignal(double theBinWidth);


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

The SetPars_Utility_BinSignal(...) Routine

Syntax
BOOLN SetPars_Utility_BinSignal(double binWidth);


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

Example: Tests/Utilities/BinSignal.c

Parameter file: BinSignal.par:
# Main Parameter file
#

output1.dat	Name of output file.
output2.dat	Name of output file.

# Module specifications.

#Par. file		Name			Description
#---------		-----			-------------
PTone2.par		PureTone		Stimulus generation paradigm.

BinSig1.par	Bin-signal utility parameter file.

# Miscellaneous parameters

4		No. of repeated runs.
Output

Figure [150] Output from the BinSignal utility module. The bin width is set to the sampling interval.

Output

Figure [151] Output from the BinSignal utility module, with the The bin width is set to twice the sampling interval.


previous next Up Title Contents