-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename GetFakeCT and move it to +sim subpackage
- Loading branch information
Showing
2 changed files
with
27 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function CT = GenerateFakeCT(nSen, nTimes) | ||
% --------------------------------------------------------------------------- % | ||
% Generate random complex matrix with cross-spectrum-timeseries-like structure | ||
% | ||
% real and imag parts of complex timeseries for CT generation are drawn from | ||
% standard normal distribution. | ||
% --------------------------------------------------------------------------- % | ||
% FORMAT: | ||
% CT = GenerateFakeCT(nSen, nTimes) | ||
% INPUTS: | ||
% nSen - scalar; number of sensors | ||
% nTimes - scalar; number of time steps | ||
% OUTPUTS: | ||
% CT - {nSen ^ 2 x nTimes} matrix; | ||
% timeseries of vectorized PSD hermitian matrices | ||
% ___________________________________________________________________________ % | ||
% Dmitrii Altukhov, [email protected] | ||
|
||
CT = zeros(nSen ^ 2, nTimes); | ||
fakeTs = randn(nSen, nTimes) + 1i * randn(nSen,nTimes); | ||
|
||
for iTime = 1:nTimes | ||
timeSlice = fakeTs(:, iTime); | ||
Cp = timeSlice * timeSlice'; | ||
CT(:,iTime) = Cp(:); | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.