Skip to content
Snippets Groups Projects
Commit 873090bf authored by Marina Kreme's avatar Marina Kreme
Browse files

add doc

parent 0e7cff29
No related branches found
No related tags found
No related merge requests found
Pipeline #5937 passed
function tf_mat = compute_dgt(x, dgt)
%% tf_mat = compute_dgt(x, dgt)
% This function computes the time-frequency (TF) matrix from a signal
% This function computes the time-frequency (TF) Discrete Gabor transform
% (DGT) of a signal
%
% Input:
% - x: signal. must be a vector
% - dgt :gabor transform operator
% - x (nd array): Input signal. must be a vector
% - dgt(handle function) :gabor transform operator
% (see utils/get_stft_operators.m)
% Output:
% -tf_mat: TF matrix
% -tf_mat: TF matrix - DGT coefficients
%
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
......
function x = compute_idgt(tf_mat, idgt)
%% x = compute_idgt(tf_mat, idgt)
% Inverse discrete Gabor transform
% This function reconstruct a signal form its the time-frequency (TF) matrix
%
% Input:
% - tf_mat: TF matrix
% - idgt: inverse of gabor transform operator
% - tf_mat (nd array): TF matrix - DGT coefficients
% - idgt (handle function): inverse of gabor transform operator
% (see utils/get_stft_operators.m)
% Output:
% -x: reconstructed signal
% -x (ndarray): reconstructed signal
%
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
......
......@@ -5,11 +5,18 @@ function [dgt, idgt, varargout] = get_stft_operators(dgt_params, signal_params,
% functions that generate the DGT operators.
%
% Inputs:
% - dgt_params: struct that contains the DGT parameters. See generate_dgt_parameters.m
% - signal_params: structure which contains the sampling frequency as well as the signal length
% - dgt_params: struct that contains the DGT parameters.
% see tf_tools/generate_dgt_parameters.m
% - signal_params: structure which contains the sampling frequency
% as well as the signal length
% see tf_tools/generate_signal_parameters.m
% - phase_conv : Compute a DGT using a frequency-invariant phase.
%
% Outputs:
% - dgt (handle fucntion) : DGT operator
% - idgt (handle fucntion) : IDGT operator
% - pseudoinverse_dgt (handle fucntion) : Pseudo-inverse of DGT
%
%
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
......@@ -39,7 +46,6 @@ pseudoinverse_dgt = @(x)idgtreal(x, wd, dgt_params.hop, dgt_params.nbins, L, pha
varargout{1} = pseudoinverse_dgt;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment