From cfe8e4ecc3840a1b242542f0418b5b0b2d03b0a4 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 20 Jan 2017 19:29:17 -0500 Subject: Added explanation to SECA --- js/stochasticca.js | 2 +- stochasticca.html | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/js/stochasticca.js b/js/stochasticca.js index 5226c35..3e9ad22 100644 --- a/js/stochasticca.js +++ b/js/stochasticca.js @@ -28,7 +28,7 @@ function drawCA() $("#error").text("Error - Invalid parameters: " + $("#params").val() + "."); return; } - createCanvas(width, time); + createCanvas(width, time).parent("#canvas"); var C = Math.floor(params.length / 2); var values = [[]]; for (var i = 0; i < width; i++) diff --git a/stochasticca.html b/stochasticca.html index 6f7bba9..f42ed01 100644 --- a/stochasticca.html +++ b/stochasticca.html @@ -7,17 +7,40 @@ + + Stochastic Cellular Automata

Stochastic Cellular Automata

+

+ The parameters should consist of an odd number of numbers separated by commas. +

Parameters:
Width:
Time:

+
+

+ The probability of any cell being black is determined by the cells above it using this formula (where $\theta$ is a vector containing the parameters, + $t$ is the time passed (or row), and $i$ is the column): + $$L = \frac{||\theta||-1}{2}$$ + $$p(0, i) = 1$$ + $$\text{(when t > 0) } p(t, i) = \theta \cdot + \begin{bmatrix} + c(t-1, i-L)\\ + c(t-1, i-L+1)\\ + \vdots \\ + c(t-1, i+L) + \end{bmatrix}$$ + $$c(t, i) = \text{a number with a $p(t, i)$ probability of being 1}$$ + +

-- cgit v1.2.3