-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneralizing_diamond_square.html
95 lines (74 loc) · 2.73 KB
/
generalizing_diamond_square.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<title>niplav</title>
<link rel="shortcut icon" type="image/png" href="./favicon.png">
<link rel="stylesheet" type="text/css" href="main.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!DOCTYPE HTML>
<style TYPE="text/css">
code.has-jax {font: inherit; font-size: 100%; background: inherit; border: inherit;}
</style>
<script type="text/javascript" async
src="./mathjax/latest.js?config=TeX-MML-AM_CHTML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
<script>
var anchorhash={}
function addAnchor(element) {
var cnt=element.textContent
if(cnt==="home")
return;
var ref=element.textContent.replace(/[^a-zA-Z0-9 ]/mg, "")
ref=ref.replace(/ /mg, "-")
var newref=ref;
if(anchorhash[ref]===1)
for(i=1, newref=ref+"_"+i;anchorhash[ref+"_"+i]===1;i++, newref=ref+"_"+i)
;
ref=newref
element.setAttribute("id", `${ref}`)
element.innerHTML=`<a href="#${ref}" class="hanchor">${cnt}</a>`
anchorhash[ref]=1
}
document.addEventListener('DOMContentLoaded', function () {
// Add anchor links to all headings
var headers = document.querySelectorAll('h1, h2, h3, h4, h5, h6')
if (headers) {
headers.forEach(addAnchor)
}
// Change the title to the h1 header
var title = document.querySelector('h1')
if(title) {
var title_elem = document.querySelector('title')
title_elem.textContent=title.textContent + " – niplav"
}
});
</script>
<h2><a href="./index.html">home</a></h2>
<p><em>author: niplav, created: 2020-11-20, modified: 2020-11-20, language: english, status: notes, importance: 6, confidence: highly likely</em></p>
<blockquote>
<p><strong>.</strong></p>
</blockquote>
<h1>Generalizing the Diamond-Square Algorithm to n Dimensions</h1>
<h2>Introduction</h2>
<h2>Description</h2>
<h3>Square</h3>
<h3>Diamond</h3>
<h2>Analysis</h2>
<h2>Results</h2>
<h3>One Dimension</h3>
<p><img src="./img/generalizing_diamond_square/onedim.png" alt="Space generated by the algorithm in one dimension" title="Space generated by the algorithm in one dimension" /></p>
<h3>Two Dimensions</h3>
<p><img src="./img/generalizing_diamond_square/twodim.png" alt="Space generated by the algorithm in two dimensions" title="Space generated by the algorithm in two dimensions" /></p>
<h3>Three Dimensions</h3>
<p><img src="./img/generalizing_diamond_square/threedim.png" alt="Space generated by the algorithm in three dimensions" title="Space generated by the algorithm in three dimensions" /></p>
</html>