From 0e7cff2915fd7a1abe966a0db0d7a52fb4c14a68 Mon Sep 17 00:00:00 2001 From: Marina Kreme <amamarinak@gmail.com> Date: Sat, 21 Nov 2020 07:03:34 +0100 Subject: [PATCH] add doc --- matlab/tfgm/utils/itakura_saito_dist.m | 26 +++++++++---------- .../tfgm/utils/itakura_saito_dist_spectrum.m | 22 ++++++++-------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/matlab/tfgm/utils/itakura_saito_dist.m b/matlab/tfgm/utils/itakura_saito_dist.m index 286d9c0..273cbce 100644 --- a/matlab/tfgm/utils/itakura_saito_dist.m +++ b/matlab/tfgm/utils/itakura_saito_dist.m @@ -1,27 +1,27 @@ function IS = itakura_saito_dist(x_ref,x_est) %% IS = itakura_saito_dist(x_ref,x_est) -% The Itakura?Saito distance (or Itakura?Saito divergence).It's measure +% The Itakura Saito distance (or Itakura Saito divergence).It's measure % of the difference between an original signal x_ref and an approximation -% x_est. see [1] +% x_est. see [1] % Inputs: -% - x_ref : original signal -% - x_est : estimated signal +% - x_ref : Reference signal +% - x_est : Estimation of the reference signal % Output: -% -IS: Itakura SAito measurement. -% -% +% -IS: Itakura Saito measurement. +% +% % Reference: -% -% [1] Itakura,F.,& Saito,S. (1968). Analysis synthesis telephony based -% on the maximum likelihood method. -% -% +% +% [1] Itakura,F.,& Saito,S. (1968). Analysis synthesis telephony based +% on the maximum likelihood method. +% +% % Author: Marina KREME %% z = x_ref./x_est; IS = sum(z - log(z)) - length(z); -end +end diff --git a/matlab/tfgm/utils/itakura_saito_dist_spectrum.m b/matlab/tfgm/utils/itakura_saito_dist_spectrum.m index 4a7d9a6..12f12ae 100644 --- a/matlab/tfgm/utils/itakura_saito_dist_spectrum.m +++ b/matlab/tfgm/utils/itakura_saito_dist_spectrum.m @@ -1,21 +1,21 @@ function IS_spectrum= itakura_saito_dist_spectrum(x_ref,x_est) %% IS_spectrum= itakura_saito_dist_spectrum(x_ref,x_est) -% The Itakura?Saito distance (or Itakura?Saito divergence).It's measure -% of the difference between an original spectrum and an approximation. see [1] +% The Itakura Saito distance (or Itakura Saito divergence).It's measure +% of the difference between an original spectrum and an approximation. see [1] % Inputs: -% - x_ref : original signal -% - x_est : estimated signal +% - x_ref : Reference signal +% - x_est : Estimation of the reference signal % Output: % -IS: Itakura SAito measurement. -% -% +% +% % Reference: -% -% [1] Itakura,F.,& Saito,S. (1968). Analysis synthesis telephony based -% on the maximum likelihood method. -% -% +% +% [1] Itakura,F.,& Saito,S. (1968). Analysis synthesis telephony based +% on the maximum likelihood method. +% +% % Author: Marina KREME %% -- GitLab