◆ channel_pair() [1/2]
level_matching::channel_pair::channel_pair |
( |
const std::pair< int, int > & |
idx_, |
|
|
mha_real_t |
filter_rate_, |
|
|
mha_real_t |
mismatch_time_constant_ |
|
) |
| |
Channel pair ctor.
- Parameters
-
idx_ | Pair of channel indices |
filter_rate_ | Filter rate of low pass filter |
mismatch_time_constant_ | Time constant of low pass filter |
◆ channel_pair() [2/2]
level_matching::channel_pair::channel_pair |
( |
int |
idx1_, |
|
|
int |
idx2_, |
|
|
mha_real_t |
filter_rate_, |
|
|
mha_real_t |
mismatch_time_constant_ |
|
) |
| |
Channel pair ctor.
- Parameters
-
idx1 | First channel index. Used as reference |
idx2 | Second channel index |
filter_rate_ | Filter rate of low pass filter |
mismatch_time_constant_ | Time constant of low pass filter |
◆ update_mismatch() [1/2]
Calculates the filtered rms level mismatch.
- Parameters
-
- Returns
- Low-pass filtered mismatch ratio
◆ update_mismatch() [2/2]
mha_real_t level_matching::channel_pair::update_mismatch |
( |
const mha_spec_t & |
signal_, |
|
|
unsigned |
fftlen_ |
|
) |
| |
Calculates the filtered rms level mismatch.
- Parameters
-
- Returns
- Low-pass filtered mismatch ratio
◆ get_mismatch()
mha_real_t level_matching::channel_pair::get_mismatch |
( |
| ) |
const |
Get last filter result.
- Returns
- Last filter result
◆ get_idx()
const std::pair<int,int>& level_matching::channel_pair::get_idx |
( |
| ) |
const |
|
inline |
◆ idx
std::pair<int,int> level_matching::channel_pair::idx |
|
private |
◆ mismatch
Low-pass filtered level mismatch.
The documentation for this class was generated from the following files: