Skip to content

Commit

Permalink
Trying to get core as functions
Browse files Browse the repository at this point in the history
  • Loading branch information
asymppdc committed Oct 8, 2022
1 parent 324005c commit 58bcfe0
Show file tree
Hide file tree
Showing 39 changed files with 1,048 additions and 710 deletions.
Binary file removed connectivity_measures_in_asymppdc.png
Binary file not shown.
4 changes: 2 additions & 2 deletions core/asymp_dtf.m
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@
end
%==========================================================================

%%
%
% 1 2 3 4 5 6 7 8 9
%23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
%% Change Log:
% Change Log:
% [2011/07/25]: The asymp_pdc routine, which asymp_dtf is derived from, was corrected on
% to match the frequency range with plotting routine, f = 0 was
% included in the "frequency" for-loop:
Expand Down
2 changes: 1 addition & 1 deletion core/asymp_pdc.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
end


%% Subfunctions
% Subfunctions
%

%==========================================================================
Expand Down
6 changes: 2 additions & 4 deletions core/html/A_to_f.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>A_to_f</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="A_to_f.m"><style type="text/css">
--><title>A_to_f</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="A_to_f.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -121,9 +121,7 @@
temp = eye(nChannels)-temp;
AL(kk,:,:) = reshape(temp,1,nChannels,nChannels);
<span class="keyword">end</span>
</pre><pre class="codeoutput error">Not enough input arguments.
Error in A_to_f (line 20)
[nChannels, ~, p] = size(A); % Dummy variable ~ is equivalent to nChannels</pre><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2020a</a><br></p></div><!--
</pre><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2020a</a><br></p></div><!--
##### SOURCE BEGIN #####
function AL = A_to_f(A, nf)
%A_to_f Calculates A(f), A in the frequency domain.
Expand Down
2 changes: 1 addition & 1 deletion core/html/arfitcaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>arfitcaps</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="arfitcaps.m"><style type="text/css">
--><title>arfitcaps</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="arfitcaps.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down
26 changes: 20 additions & 6 deletions core/html/asymp_dtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>asymp_dtf</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="asymp_dtf.m"><style type="text/css">
--><title>asymp_dtf</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="asymp_dtf.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,7 +67,7 @@



</style></head><body><div class="content"><h2>Contents</h2><div><ul><li><a href="#3">Change Log:</a></li></ul></div><pre class="codeinput"><span class="keyword">function</span> c = asymp_dtf(u,A,pf,nFreqs,metric,alpha)
</style></head><body><div class="content"><pre class="codeinput"><span class="keyword">function</span> c = asymp_dtf(u,A,pf,nFreqs,metric,alpha)
<span class="comment">%ASYMP_DTF Compute DTF connectivity measures magnitude, from series j--&gt;i, for</span>
<span class="comment">% any of three of metrics --- Euclidean, diagonal and information ---</span>
<span class="comment">% as well as asymptotic statistics from vector autoregressive (VAR)</span>
Expand Down Expand Up @@ -586,8 +586,22 @@
hh = -[h1; h2]; <span class="comment">%hh = cat(h1, h2, 0)</span>
<span class="keyword">end</span>
<span class="comment">%==========================================================================</span>
</pre><pre> 1 2 3 4 5 6 7 8 9</pre><pre class="codeinput"><span class="comment">%23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890</span>
</pre><h2 id="3">Change Log:</h2><p>[2011/07/25]: The asymp_pdc routine, which asymp_dtf is derived from, was corrected on to match the frequency range with plotting routine, f = 0 was included in the "frequency" for-loop: for ff = 1:nFreqs, f = (ff-1)/(2*nFreqs); % ^?^^ [2021/09/02, LAB]: complex dtf calculation added</p><p>[2015/01/07]: Optimization \(^o^)/</p><pre class="codeinput"><span class="comment">% [EOF]</span>

<span class="comment">%</span>
<span class="comment">% 1 2 3 4 5 6 7 8 9</span>
<span class="comment">%23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890</span>
<span class="comment">% Change Log:</span>
<span class="comment">% [2011/07/25]: The asymp_pdc routine, which asymp_dtf is derived from, was corrected on</span>
<span class="comment">% to match the frequency range with plotting routine, f = 0 was</span>
<span class="comment">% included in the "frequency" for-loop:</span>
<span class="comment">% for ff = 1:nFreqs,</span>
<span class="comment">% f = (ff-1)/(2*nFreqs); %</span>
<span class="comment">% ^?^^</span>
<span class="comment">% [2021/09/02, LAB]: complex dtf calculation added</span>
<span class="comment">%</span>
<span class="comment">% [2015/01/07]: Optimization \(^o^)/</span>

<span class="comment">% [EOF]</span>
</pre><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2020a</a><br></p></div><!--
##### SOURCE BEGIN #####
function c = asymp_dtf(u,A,pf,nFreqs,metric,alpha)
Expand Down Expand Up @@ -1110,10 +1124,10 @@
end
%==========================================================================
%%
%
% 1 2 3 4 5 6 7 8 9
%23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
%% Change Log:
% Change Log:
% [2011/07/25]: The asymp_pdc routine, which asymp_dtf is derived from, was corrected on
% to match the frequency range with plotting routine, f = 0 was
% included in the "frequency" for-loop:
Expand Down
13 changes: 9 additions & 4 deletions core/html/asymp_pdc.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>asymp_pdc</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="asymp_pdc.m"><style type="text/css">
--><title>asymp_pdc</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="asymp_pdc.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,7 +67,7 @@



</style></head><body><div class="content"><h2>Contents</h2><div><ul><li><a href="#2">Subfunctions</a></li></ul></div><pre class="codeinput"><span class="keyword">function</span> c = asymp_pdc(u,A,pf,nFreqs,metric,alpha)
</style></head><body><div class="content"><pre class="codeinput"><span class="keyword">function</span> c = asymp_pdc(u,A,pf,nFreqs,metric,alpha)
<span class="comment">%ASYMP_PDC Compute complex and squared partial directed coherence for any</span>
<span class="comment">% of three metrics -- Euclidean, diagonal and informational --</span>
<span class="comment">% along with asymptotic statistics from vector autoregressive</span>
Expand Down Expand Up @@ -440,7 +440,12 @@
c.coh2 = coh_alg(c.SS);
<span class="comment">%</span>
<span class="keyword">end</span>
</pre><h2 id="2">Subfunctions</h2><pre class="codeinput"> <span class="comment">%==========================================================================</span>


<span class="comment">% Subfunctions</span>
<span class="comment">%</span>

<span class="comment">%==========================================================================</span>
<span class="keyword">function</span> gamma = bigautocorr(x, p)
<span class="comment">% Autocorrelation. Data in row-wise orientation. From order 0 to p-1.</span>
<span class="comment">% Output: n x n blocks of autocorr of lags i. (Nuttall Strand matrix)'''</span>
Expand Down Expand Up @@ -991,7 +996,7 @@
end
%% Subfunctions
% Subfunctions
%
%==========================================================================
Expand Down
2 changes: 1 addition & 1 deletion core/html/cmlsm.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>cmlsm</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="cmlsm.m"><style type="text/css">
--><title>cmlsm</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="cmlsm.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down
2 changes: 1 addition & 1 deletion core/html/coh_alg.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>coh_alg</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-07"><meta name="DC.source" content="coh_alg.m"><style type="text/css">
--><title>coh_alg</title><meta name="generator" content="MATLAB 9.8"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-10-08"><meta name="DC.source" content="coh_alg.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down
Loading

0 comments on commit 58bcfe0

Please sign in to comment.