Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tff2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
873090bf
Commit
873090bf
authored
4 years ago
by
Marina Kreme
Browse files
Options
Downloads
Patches
Plain Diff
add doc
parent
0e7cff29
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5937
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/tfgm/utils/compute_dgt.m
+7
-5
7 additions, 5 deletions
matlab/tfgm/utils/compute_dgt.m
matlab/tfgm/utils/compute_idgt.m
+8
-6
8 additions, 6 deletions
matlab/tfgm/utils/compute_idgt.m
matlab/tfgm/utils/get_stft_operators.m
+11
-5
11 additions, 5 deletions
matlab/tfgm/utils/get_stft_operators.m
with
26 additions
and
16 deletions
matlab/tfgm/utils/compute_dgt.m
+
7
−
5
View file @
873090bf
function
tf_mat
=
compute_dgt
(
x
,
dgt
)
function
tf_mat
=
compute_dgt
(
x
,
dgt
)
%% 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:
% Input:
% - x: signal. must be a vector
% - x (nd array): Input signal. must be a vector
% - dgt :gabor transform operator
% - dgt(handle function) :gabor transform operator
% (see utils/get_stft_operators.m)
% Output:
% Output:
% -tf_mat: TF matrix
% -tf_mat: TF matrix
- DGT coefficients
%
%
% Author : A. Marina KREME
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
...
...
This diff is collapsed.
Click to expand it.
matlab/tfgm/utils/compute_idgt.m
+
8
−
6
View file @
873090bf
function
x
=
compute_idgt
(
tf_mat
,
idgt
)
function
x
=
compute_idgt
(
tf_mat
,
idgt
)
%% 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
% This function reconstruct a signal form its the time-frequency (TF) matrix
%
%
% Input:
% Input:
% - tf_mat: TF matrix
% - tf_mat (nd array): TF matrix - DGT coefficients
% - idgt: inverse of gabor transform operator
% - idgt (handle function): inverse of gabor transform operator
% (see utils/get_stft_operators.m)
% Output:
% Output:
%
-x
: reconstructed signal
%
-x (ndarray)
: reconstructed signal
%
%
% Author : A. Marina KREME
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
...
...
This diff is collapsed.
Click to expand it.
matlab/tfgm/utils/get_stft_operators.m
+
11
−
5
View file @
873090bf
...
@@ -5,11 +5,18 @@ function [dgt, idgt, varargout] = get_stft_operators(dgt_params, signal_params,
...
@@ -5,11 +5,18 @@ function [dgt, idgt, varargout] = get_stft_operators(dgt_params, signal_params,
% functions that generate the DGT operators.
% functions that generate the DGT operators.
%
%
% Inputs:
% Inputs:
% - dgt_params: struct that contains the DGT parameters. See generate_dgt_parameters.m
% - dgt_params: struct that contains the DGT parameters.
% - signal_params: structure which contains the sampling frequency as well as the signal length
% 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.
% - phase_conv : Compute a DGT using a frequency-invariant phase.
%
%
% Outputs:
% Outputs:
% - dgt (handle fucntion) : DGT operator
% - idgt (handle fucntion) : IDGT operator
% - pseudoinverse_dgt (handle fucntion) : Pseudo-inverse of DGT
%
%
%
% Author : A. Marina KREME
% Author : A. Marina KREME
% e-mail : ama-marina.kreme@lis-lab.fr/ama-marina.kreme@univ-amu.fr
% 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
...
@@ -39,7 +46,6 @@ pseudoinverse_dgt = @(x)idgtreal(x, wd, dgt_params.hop, dgt_params.nbins, L, pha
varargout
{
1
}
=
pseudoinverse_dgt
;
varargout
{
1
}
=
pseudoinverse_dgt
;
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment