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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPAH
IN-NOVA
Virtual Sensing
Commits
2ff8956d
Commit
2ff8956d
authored
7 months ago
by
Achilles Kappis
Browse files
Options
Downloads
Patches
Plain Diff
Add output argument to return the condition number of the RmmMtx from the obsFiltTD.m
parent
13015a2c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
+20
-7
20 additions, 7 deletions
.../Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
with
20 additions
and
7 deletions
Virtual Sensing/Remote Microphone Technique/MATLAB/Functions/obsFiltTD.m
+
20
−
7
View file @
2ff8956d
...
...
@@ -3,7 +3,7 @@
% Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com
%
% Date: 1
4
/09/2024 (DD/MM/YYYY)
% Date: 1
5
/09/2024 (DD/MM/YYYY)
%
% Copyright: MIT
% --------------------------------------------------
...
...
@@ -86,6 +86,12 @@
% RmmMtx [numeric]: This is the matrix with the cross-correlation matrices
% of the monitoring microphone signals stacked together.
% The dimensions are TotFiltLenxTotFiltLenxJ.
%
% condNum [numeric]: The condition number of the monitoring microphone
% cross-correlation matrix "RmmMtx". This is a vector of
% length J, with each element corresponding to the
% condition number of the matrix for each trial/sound
% field realisation.
%
% mMtx [numeric]: The monitoring microphone signals vectorised so that they
% can be used directly with either "Ovec" or "Oopt"
...
...
@@ -136,12 +142,12 @@
% Stephen J. Elliott and Jordan Cheer.
%
% --------------------------------------------------
function
[
O
,
Rme
,
Rmm
,
Ovec
,
RmeMtx
,
RmmMtx
,
mMtx
,
Omean
,
RmeMean
,
RmmMean
,
Oopt
,
RmeMtxMean
,
RmmMtxMean
]
=
obsFiltTD
(
e
,
m
,
beta
,
filtLen
,
delay
,
fs
)
function
[
O
,
Rme
,
Rmm
,
Ovec
,
RmeMtx
,
RmmMtx
,
condNum
,
mMtx
,
Omean
,
RmeMean
,
RmmMean
,
Oopt
,
RmeMtxMean
,
RmmMtxMean
]
=
obsFiltTD
(
e
,
m
,
beta
,
filtLen
,
delay
,
fs
)
% ====================================================
% Check for number of arguments
% ====================================================
narginchk
(
2
,
6
);
nargoutchk
(
0
,
1
3
);
nargoutchk
(
0
,
1
4
);
% ====================================================
% Validate input arguments
...
...
@@ -253,13 +259,20 @@ function [O, Rme, Rmm, Ovec, RmeMtx, RmmMtx, mMtx, Omean, RmeMean, RmmMean, Oopt
% ====================================================
% Provide additional output arguments
% ====================================================
%
The m
onit
oring microphone signals vectorised per
trial/sound field realisation
%
C
on
d
it
ion number of RmmMtx for each
trial/sound field realisation
if
nargout
>
6
for
jIdx
=
size
(
RmmMtx
,
3
):
-
1
:
1
condNum
(
jIdx
)
=
cond
(
Rmm
(:,
:,
jIdx
));
end
end
% The monitoring microphone signals vectorised per trial/sound field realisation
if
nargout
>
7
mMtx
=
reshape
(
m
,
prod
(
size
(
m
,
[
1
,
2
])),
size
(
m
,
3
));
end
% Observation filter calculated with the mean Rme and Rmm over the trials/sound field realisation
if
nargout
>
7
if
nargout
>
8
% Average the RmeMtx and RmmMtx matrices
RmeMtxMean
=
mean
(
RmeMtx
,
3
);
RmmMtxMean
=
mean
(
RmmMtx
,
3
);
...
...
@@ -272,12 +285,12 @@ function [O, Rme, Rmm, Ovec, RmeMtx, RmmMtx, mMtx, Omean, RmeMean, RmmMean, Oopt
end
% Mean cross-correlations between monitoring and virtual microphones over trials/sound field realisations
if
nargout
>
8
if
nargout
>
9
RmeMean
=
mean
(
Rme
,
4
);
end
% Mean cross-correlations of monitoring microphones over trials/sound field realisations
if
nargout
>
9
if
nargout
>
10
RmmMean
=
mean
(
Rmm
,
5
);
end
end
\ No newline at end of file
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