The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research

Minimal phase function. More...

Inheritance diagram for MHASignal::minphase_t:
Inheritance graph

Public Member Functions

 minphase_t (unsigned int fftlen, unsigned int ch)
 Constructor. More...
 
void operator() (mha_spec_t *s)
 Transform input spectrum to a minimal-phase spectrum, discarding the original phase. More...
 

Private Attributes

MHASignal::waveform_t phase
 

Additional Inherited Members

- Private Member Functions inherited from MHASignal::hilbert_t
 hilbert_t (unsigned int len)
 
 ~hilbert_t ()
 
void operator() (const mha_wave_t *, mha_wave_t *)
 Apply Hilbert transformation on a waveform segment. More...
 

Detailed Description

Minimal phase function.

The output spectrum $Y(f)$ is

\[ Y(f) = |X(f)| e^{i \mathcal{H}\left\{\log|X(f)|\right\}}, \]

with the input spectrum $X(f)$ and the Hilbert transformation $\mathcal{H}\{\cdots\}$.

Constructor & Destructor Documentation

◆ minphase_t()

MHASignal::minphase_t::minphase_t ( unsigned int  fftlen,
unsigned int  ch 
)

Constructor.

Parameters
fftlenFFT length
chNumber of channels

Member Function Documentation

◆ operator()()

void MHASignal::minphase_t::operator() ( mha_spec_t s)

Transform input spectrum to a minimal-phase spectrum, discarding the original phase.

Parameters
sSpectrum to operate on.

Member Data Documentation

◆ phase

MHASignal::waveform_t MHASignal::minphase_t::phase
private

The documentation for this class was generated from the following files: