The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHAFilter::partitioned_convolution_t::index_t Struct Reference

Bookkeeping class. More...

Public Member Functions

 index_t (unsigned int src, unsigned int tgt, unsigned int dly)
 Data constructor. More...
 
 index_t ()
 Default constructor for STL compatibility. More...
 

Public Attributes

unsigned int source_channel_index
 The input channel index to apply the current partition to. More...
 
unsigned int target_channel_index
 The index of the output channel to which the filter result should go. More...
 
unsigned int delay
 The delay (in blocks) of this partition. More...
 

Detailed Description

Bookkeeping class.

For each impulse response partition, keeps track of which input to filter, which output channel to filter to, and the delay in blocks. Objects of class Index should be kept in an array with the same indices as the corresponding inpulse response partitions.

Constructor & Destructor Documentation

◆ index_t() [1/2]

MHAFilter::partitioned_convolution_t::index_t::index_t ( unsigned int  src,
unsigned int  tgt,
unsigned int  dly 
)
inline

Data constructor.

Parameters
srcThe input channel index to apply the current partition to.
tgtThe index of the output channel to which the filter result should go.
dlyThe delay (in blocks) of this partition

◆ index_t() [2/2]

MHAFilter::partitioned_convolution_t::index_t::index_t ( )
inline

Default constructor for STL compatibility.

Member Data Documentation

◆ source_channel_index

unsigned int MHAFilter::partitioned_convolution_t::index_t::source_channel_index

The input channel index to apply the current partition to.

◆ target_channel_index

unsigned int MHAFilter::partitioned_convolution_t::index_t::target_channel_index

The index of the output channel to which the filter result should go.

◆ delay

unsigned int MHAFilter::partitioned_convolution_t::index_t::delay

The delay (in blocks) of this partition.


The documentation for this struct was generated from the following file: