Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Virtual Sensing
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPAH
IN-NOVA
Virtual Sensing
Commits
5cf0bfbf
Commit
5cf0bfbf
authored
9 months ago
by
Achilles Kappis
Browse files
Options
Downloads
Patches
Plain Diff
Fix error in SNR calculation in obsFiltTD.m
parent
3d14a716
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
+4
-3
4 additions, 3 deletions
.../Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
with
4 additions
and
3 deletions
Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
+
4
−
3
View file @
5cf0bfbf
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
% Author: Achilles Kappis
% Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com
% e-mail: axilleaz@protonmail.com
%
%
% Date: 0
4
/10/2024 (DD/MM/YYYY)
% Date: 0
5
/10/2024 (DD/MM/YYYY)
%
%
% Copyright: MIT
% Copyright: MIT
% --------------------------------------------------
% --------------------------------------------------
...
@@ -281,8 +281,9 @@ function [O, Rme, Rmm, Ovec, RmeMtx, RmmMtx, condNum, mMtx, Omean, RmeMean, RmmM
...
@@ -281,8 +281,9 @@ function [O, Rme, Rmm, Ovec, RmeMtx, RmmMtx, condNum, mMtx, Omean, RmeMean, RmmM
for
jIdx
=
size
(
RmmMtx
,
3
):
-
1
:
1
for
jIdx
=
size
(
RmmMtx
,
3
):
-
1
:
1
snrMtx
=
10
^
(
-
snrVal
/
10
)
*
norm
(
RmmMtx
(:,
:,
jIdx
),
'fro'
)/(
size
(
m
,
2
)
^
2
);
% Calculate the appropriate SNR amplitude values
snrMtx
=
10
^
(
-
snrVal
/
10
);
% Convert SNR to linear value
snrMtx
=
snrMtx
*
eye
(
size
(
RmmMtx
,
1
));
snrMtx
=
(
snrMtx
^
2
)
*
norm
(
RmmMtx
(:,
:,
jIdx
),
'fro'
)/(
size
(
m
,
2
)
^
2
);
% Calculate the appropriate SNR amplitude values
snrMtx
=
snrMtx
*
eye
(
size
(
RmmMtx
,
1
));
% Make the matrix
Ovec
(:,
:,
jIdx
)
=
RmeMtx
(:,
:,
jIdx
)
.'
/(
RmmMtx
(:,
:,
jIdx
)
+
regMtx
+
snrMtx
);
Ovec
(:,
:,
jIdx
)
=
RmeMtx
(:,
:,
jIdx
)
.'
/(
RmmMtx
(:,
:,
jIdx
)
+
regMtx
+
snrMtx
);
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