Skip to content

Commit bfb7811

Browse files
author
Documenter.jl
committed
build based on e8baf49
1 parent e0eb12b commit bfb7811

File tree

22 files changed

+3356
-3356
lines changed

22 files changed

+3356
-3356
lines changed

dev/.documenter-siteinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.8.5","generation_timestamp":"2025-09-09T23:49:44","documenter_version":"1.14.1"}}
1+
{"documenter":{"julia_version":"1.8.5","generation_timestamp":"2025-09-10T00:42:06","documenter_version":"1.14.1"}}
Lines changed: 66 additions & 66 deletions
Loading
Lines changed: 39 additions & 39 deletions
Loading
Lines changed: 66 additions & 66 deletions
Loading
Lines changed: 42 additions & 42 deletions
Loading
Lines changed: 41 additions & 41 deletions
Loading

dev/examples/Grid7x3/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
clims = (-0.4,0.4), frame = :none, ratio = 1, ylim = [0, Ny + 1],
2626
title = latexstring("\\phi_{", i-1, "}"), titlefont = 12,
2727
subplot = i)
28-
end</code></pre><img src="491f1b17.svg" alt="Example block output"/><pre><code class="language-julia hljs">## 2D ordering: natural frequency ordering
28+
end</code></pre><img src="ba523c37.svg" alt="Example block output"/><pre><code class="language-julia hljs">## 2D ordering: natural frequency ordering
2929
plot(layout = Plots.grid(3, 7))
3030
for i in 1:N
3131
k = grid2eig_ind[i]
3232
heatmap!(reshape(𝚽[:,k], (Nx, Ny))&#39;, c = :viridis, cbar = false,
3333
clims = (-0.4,0.4), frame = :none, ratio = 1, ylim = [0, Ny + 1],
3434
title = latexstring(&quot;\\varphi_{&quot;, string(eig2dct[k,1]),
3535
&quot;,&quot;, string(eig2dct[k,2]), &quot;}&quot;), titlefont = 12, subplot = i)
36-
end</code></pre><img src="82d0565b.svg" alt="Example block output"/><p>What we really want to do is to <em>organize</em> those eigenvectors based on their natural frequencies or their behaviors instead of their eigenvalues. To do that, we utilize the metrics discussed in the <a href="https://www.math.ucdavis.edu/~saito/publications/metgraphlap.html">paper</a> as follows. But first, we create a custom plotting function for later use.</p><pre><code class="language-julia hljs">function grid7x3_mds_heatmaps(E, 𝚽; Nx = 7, Ny = 3, annotate_ind = 1:N, plotOrder = 1:N)
36+
end</code></pre><img src="28cd3208.svg" alt="Example block output"/><p>What we really want to do is to <em>organize</em> those eigenvectors based on their natural frequencies or their behaviors instead of their eigenvalues. To do that, we utilize the metrics discussed in the <a href="https://www.math.ucdavis.edu/~saito/publications/metgraphlap.html">paper</a> as follows. But first, we create a custom plotting function for later use.</p><pre><code class="language-julia hljs">function grid7x3_mds_heatmaps(E, 𝚽; Nx = 7, Ny = 3, annotate_ind = 1:N, plotOrder = 1:N)
3737
# set up all heatmap plots&#39; positions
3838
max_x = maximum(E[1, :]); min_x = minimum(E[1, :])
3939
width_x = max_x - min_x
@@ -67,8 +67,8 @@
6767
end</code></pre><h2 id="ROT-distance"><a class="docs-heading-anchor" href="#ROT-distance">ROT distance</a><a id="ROT-distance-1"></a><a class="docs-heading-anchor-permalink" href="#ROT-distance" title="Permalink"></a></h2><p>Before we measure the ROT distance between the eigenvectors, we convert them to probability mass functions by taking entrywise squares. After we got the ROT distance matrix of the eigenvectors, we visualize the arrangement of the eigenvectors in <span>$\mathbb{R}^{2}$</span> via <a href="https://en.wikipedia.org/wiki/Multidimensional_scaling#Classical_multidimensional_scaling">the classical MDS embedding</a>.</p><pre><code class="language-julia hljs">## ROT distance
6868
D = natural_eigdist(𝚽, 𝛌, Q; α = 0.5, input_format = :pmf1, distance = :ROT)
6969
E = transform(fit(MDS, D, maxoutdim=2, distances=true))
70-
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="a88af466.svg" alt="Example block output"/><h2 id="DAG-distance"><a class="docs-heading-anchor" href="#DAG-distance">DAG distance</a><a id="DAG-distance-1"></a><a class="docs-heading-anchor-permalink" href="#DAG-distance" title="Permalink"></a></h2><p>We organize the eigenvectors by the DAG distance.</p><pre><code class="language-julia hljs">D = natural_eigdist(𝚽, 𝛌, Q; distance = :DAG)
70+
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="d8b3e64c.svg" alt="Example block output"/><h2 id="DAG-distance"><a class="docs-heading-anchor" href="#DAG-distance">DAG distance</a><a id="DAG-distance-1"></a><a class="docs-heading-anchor-permalink" href="#DAG-distance" title="Permalink"></a></h2><p>We organize the eigenvectors by the DAG distance.</p><pre><code class="language-julia hljs">D = natural_eigdist(𝚽, 𝛌, Q; distance = :DAG)
7171
E = transform(fit(MDS, D, maxoutdim=2, distances=true))
72-
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="899e207f.svg" alt="Example block output"/><h2 id="TSD-distance"><a class="docs-heading-anchor" href="#TSD-distance">TSD distance</a><a id="TSD-distance-1"></a><a class="docs-heading-anchor-permalink" href="#TSD-distance" title="Permalink"></a></h2><p>We organize the eigenvectors by the TSD distance with the parameter <span>$T = 0.1$</span>.</p><pre><code class="language-julia hljs">D = natural_eigdist(𝚽, 𝛌, Q; T = 0.1, distance = :TSD) # T = 0.1
72+
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="f6f83f1a.svg" alt="Example block output"/><h2 id="TSD-distance"><a class="docs-heading-anchor" href="#TSD-distance">TSD distance</a><a id="TSD-distance-1"></a><a class="docs-heading-anchor-permalink" href="#TSD-distance" title="Permalink"></a></h2><p>We organize the eigenvectors by the TSD distance with the parameter <span>$T = 0.1$</span>.</p><pre><code class="language-julia hljs">D = natural_eigdist(𝚽, 𝛌, Q; T = 0.1, distance = :TSD) # T = 0.1
7373
E = transform(fit(MDS, D, maxoutdim=2, distances=true))
74-
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="1bd7ff4e.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../P64/">« 1D Path</a><a class="docs-footer-nextpage" href="../Sunflower/">Sunflower Graph »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.14.1 on <span class="colophon-date" title="Tuesday 9 September 2025 23:49">Tuesday 9 September 2025</span>. Using Julia version 1.8.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
74+
grid7x3_mds_heatmaps(E, 𝚽)</code></pre><img src="7948ec20.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../P64/">« 1D Path</a><a class="docs-footer-nextpage" href="../Sunflower/">Sunflower Graph »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.14.1 on <span class="colophon-date" title="Wednesday 10 September 2025 00:42">Wednesday 10 September 2025</span>. Using Julia version 1.8.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Lines changed: 195 additions & 195 deletions
Loading
Lines changed: 131 additions & 131 deletions
Loading

0 commit comments

Comments
 (0)