{"version":9,"randomSeed":"6df2d913da859d66c4d9b37c1a04c212","graph":{"viewport":{"xmin":-5.565939010232668,"ymin":-3.477397906665713,"xmax":15.149695355410401,"ymax":15.051001967579507},"showGrid":false,"showXAxis":false,"showYAxis":false},"expressions":{"list":[{"type":"folder","id":"79","title":"setup","hidden":true},{"type":"expression","id":"86","folderId":"79","color":"#000000","latex":"w=10","slider":{"hardMin":true,"hardMax":true,"min":"1","max":"20","step":"1"}},{"type":"expression","id":"87","folderId":"79","color":"#c74440","latex":"h=10","slider":{"hardMin":true,"hardMax":true,"min":"1","max":"20","step":"1"}},{"type":"expression","id":"88","folderId":"79","color":"#2d70b3","latex":"L_{orig}\\to\\operatorname{round}\\left(\\operatorname{random}\\left(wh\\right),1\\right)"},{"type":"expression","id":"125","folderId":"79","color":"#6042a6","latex":"L_{orig}\\to\\left[1,0,0,0,0,0,0,0,0\\right]"},{"type":"expression","id":"70","folderId":"79","color":"#388c46","latex":"L\\to L_{orig}"},{"type":"expression","id":"76","folderId":"79","color":"#6042a6","latex":"d_{t}=0.025","slider":{"hardMin":true,"hardMax":true,"min":"0","max":"1"}},{"type":"folder","id":"92","title":"data","collapsed":true},{"type":"expression","id":"1","folderId":"92","color":"#c74440","latex":"L_{orig}=\\left[0.1,0.3,0.9,0.2,0.4,0.9,0.4,0.7,0.9,0.4,0,0.1,0.6,0.6,0.5,0.3,0.1,0.5,0.9,0.1,0.6,0.7,0.3,0.3,0.4,0.4,1,1,1,0.6,0.1,0.9,0.8,0.2,0.5,0.3,0.2,0.9,1,0.2,0.6,0.6,0.2,0.4,0.7,0.3,0.1,0.1,0.3,0.5,0.7,0.2,0.5,0.2,0.3,0.5,0.3,0.7,0.4,0.1,0.8,0.4,0.9,0.2,0.4,0.3,0.4,0.4,0.3,1,0.7,0.2,0.9,0.5,0.7,0.4,0.3,0.2,0,0.3,0.8,0.8,0.1,0.8,0.1,0.6,0.6,0.9,0.6,1,0.5,0.2,0.8,0.7,0,0.4,0.7,0,0.2,0.8\\right]"},{"type":"expression","id":"69","folderId":"92","color":"#2d70b3","latex":"L=\\left[0.1,0.3,0.9,0.2,0.4,0.9,0.4,0.7,0.9,0.4,0,0.1,0.6,0.6,0.5,0.3,0.1,0.5,0.9,0.1,0.6,0.7,0.3,0.3,0.4,0.4,1,1,1,0.6,0.1,0.9,0.8,0.2,0.5,0.3,0.2,0.9,1,0.2,0.6,0.6,0.2,0.4,0.7,0.3,0.1,0.1,0.3,0.5,0.7,0.2,0.5,0.2,0.3,0.5,0.3,0.7,0.4,0.1,0.8,0.4,0.9,0.2,0.4,0.3,0.4,0.4,0.3,1,0.7,0.2,0.9,0.5,0.7,0.4,0.3,0.2,0,0.3,0.8,0.8,0.1,0.8,0.1,0.6,0.6,0.9,0.6,1,0.5,0.2,0.8,0.7,0,0.4,0.7,0,0.2,0.8\\right]"},{"type":"folder","id":"94","title":"functions"},{"type":"text","id":"96","folderId":"94","text":"access 2D array at (i, j)"},{"type":"expression","id":"97","folderId":"94","color":"#388c46","latex":"G\\left(v,i,j\\right)=v\\left[w\\left(j-1\\right)+i\\right]"},{"type":"text","id":"121","folderId":"94","text":"access 2D array like a torus at index i"},{"type":"expression","id":"122","folderId":"94","color":"#c74440","latex":"G_{t}\\left(v,i\\right)=v\\left[\\operatorname{mod}\\left(i-1,wh\\right)+1\\right]"},{"type":"text","id":"113","folderId":"94","text":"updated version of v[i] based on diffusion from its surroundings"},{"type":"expression","id":"119","folderId":"94","color":"#6042a6","latex":"B_{is}\\left(v,i\\right)=\\frac{G_{t}\\left(v,i\\right)+d_{t}\\left(G_{t}\\left(v,i-w-1\\right)+G_{t}\\left(v,i-w\\right)+G_{t}\\left(v,i-w+1\\right)+G_{t}\\left(v,i-1\\right)+G_{t}\\left(v,i+1\\right)+G_{t}\\left(v,i+w-1\\right)+G_{t}\\left(v,i+w\\right)+G_{t}\\left(v,i+w+1\\right)\\right)}{1+8d_{t}}"},{"type":"expression","id":"114","folderId":"94","color":"#6042a6","latex":"B_{i}\\left(v,i\\right)=B_{is}\\left(v,i\\right)"},{"type":"expression","id":"118","folderId":"94","color":"#388c46","latex":"B\\left(v\\right)=\\left[B_{i}\\left(v,k\\right)\\operatorname{for}k=\\left[1...\\operatorname{length}\\left(v\\right)\\right]\\right]"},{"type":"folder","id":"105","title":"display","collapsed":true},{"type":"text","id":"107","folderId":"105","text":"heatmap"},{"type":"expression","id":"98","folderId":"105","color":"#c74440","latex":"G\\left(L,\\operatorname{ceil}\\left(x\\right),\\operatorname{ceil}\\left(y\\right)\\right)\\ge\\left[0,0.05,...1\\right]\\left\\{0\\le x\\le w\\right\\}\\left\\{0\\le y\\le h\\right\\}","lines":false,"fillOpacity":"0.1"},{"type":"text","id":"109","folderId":"105","text":"borders"},{"type":"expression","id":"99","folderId":"105","color":"#000000","latex":"x=\\left[0,w\\right]\\left\\{0\\le y\\le h\\right\\}","lineOpacity":"1","lineWidth":"10"},{"type":"expression","id":"100","folderId":"105","color":"#000000","latex":"y=\\left[0,h\\right]\\left\\{0\\le x\\le w\\right\\}","lineOpacity":"1","lineWidth":"10"},{"type":"text","id":"111","folderId":"105","text":"point that alternates to show timesteps"},{"type":"expression","id":"102","folderId":"105","color":"#2d70b3","latex":"\\left(Tw,h+1\\right)"},{"type":"expression","id":"103","folderId":"105","color":"#388c46","latex":"T=1","slider":{"hardMin":true,"hardMax":true,"min":"0","max":"1","step":"1"}},{"type":"text","id":"85","text":"\"blur\" (diffusion)"},{"type":"expression","id":"74","color":"#2d70b3","latex":"B_{iaoeu}\\left(v,i\\right)=\\left\\{i=1:\\frac{v\\left[i\\right]+d_{t}v\\left[i+1\\right]}{1+d_{t}},i=\\operatorname{length}\\left(v\\right):\\frac{v\\left[i\\right]+d_{t}v\\left[i-1\\right]}{1+d_{t}},\\frac{d_{t}v\\left[i-1\\right]+v\\left[i\\right]+d_{t}v\\left[i+1\\right]}{1+2d_{t}}\\right\\}"},{"type":"expression","id":"73","color":"#c74440","latex":"B_{aoeu}\\left(v\\right)=\\left[B_{i}\\left(v,k\\right)\\operatorname{for}k=\\left[1...\\operatorname{length}\\left(v\\right)\\right]\\right]"},{"type":"expression","id":"124","color":"#388c46","latex":"S=\\left(L\\to B\\left(L\\right),T\\to1-T\\right)"}],"ticker":{"handlerLatex":"S","minStepLatex":"10","open":true}}}