@@ -79,7 +79,7 @@ an array of cells that are connected together with the notion of neighbour and
79
79
their vectorization is straightforward. Let me first define the game and we'll
80
80
see how to vectorize it.
81
81
82
- .. admonition :: **Figure**
82
+ .. admonition :: **Figure 4.1 **
83
83
:class: legend
84
84
85
85
Conus textile snail exhibits a cellular automaton pattern on its shell.
@@ -185,7 +185,7 @@ The figure below shows 4 iterations on a 4x4 area where the initial state is a
185
185
`glider <https://en.wikipedia.org/wiki/Glider_(Conway%27s_Life) >`_, a structure
186
186
discovered by Richard K. Guy in 1970.
187
187
188
- .. admonition :: **Figure 1 **
188
+ .. admonition :: **Figure 4.2 **
189
189
:class: legend
190
190
191
191
The glider pattern is known to replicate itself one step diagonally in 4
@@ -278,7 +278,7 @@ If you look at the `birth` and `survive` lines, you'll see that these two
278
278
variables are arrays that can be used to set `Z ` values to 1 after having
279
279
cleared it.
280
280
281
- .. admonition :: **Figure 2 **
281
+ .. admonition :: **Figure 4.3 **
282
282
:class: legend
283
283
284
284
The Game of Life. Gray levels indicate how miuch a cell has been active in
@@ -349,7 +349,7 @@ Zebrafish 0.16 0.08 0.035 0.060
349
349
The figure below show some animation of the model for a specific set of parameters.
350
350
351
351
352
- .. admonition :: **Figure 3 **
352
+ .. admonition :: **Figure 4.4 **
353
353
:class: legend
354
354
355
355
Reaction-diffusion Gray-Scott model. From left to right, *Bacteria 1 *, *Coral * and
@@ -417,7 +417,7 @@ which, if the number is still within some bounds, it is considerered non
417
417
divergent. Of course, the more iteration you do, the more precision you get.
418
418
419
419
420
- .. admonition :: **Figure**
420
+ .. admonition :: **Figure 4.5 **
421
421
:class: legend
422
422
423
423
Romanesco broccoli, showing self-similar form approximating a natural fractal.
@@ -555,7 +555,7 @@ escape cutoff. See reference below about the renormalization of the escape
555
555
count. Here is a picture of the result where we use recount normalization,
556
556
and added a power normalized colormap (gamma=0.3) as well as light shading.
557
557
558
- .. admonition :: **Figure 4**
558
+ .. admonition :: **Figure 4.6 **
559
559
:class: legend
560
560
561
561
The Mandelbrot as rendered by maplotlib using recount normalization, power
@@ -584,7 +584,7 @@ the exercise is to write a function using Numpy that takes a two-dimensional
584
584
float array and return the dimension. We'll consider values in the array to be
585
585
normalized (i.e. all values are between 0 and 1).
586
586
587
- .. admonition :: **Figure 5 **
587
+ .. admonition :: **Figure 4.7 **
588
588
:class: legend
589
589
590
590
The Minkowski–Bouligand dimension of the Great Britain coastlines is
@@ -623,7 +623,7 @@ update at each iteration. This the case for example in particle systems where
623
623
particles interact mostly with local neighbours. This is also the case for
624
624
boids that simulate flocking behaviors.
625
625
626
- .. admonition :: **Figure**
626
+ .. admonition :: **Figure 4.8 **
627
627
:class: legend
628
628
629
629
Flocking birds are an example of self-organization in biology.
@@ -656,7 +656,7 @@ rules. The rules applied in the simplest Boids world are as follows:
656
656
local flockmates
657
657
658
658
659
- .. admonition :: **Figure 7 **
659
+ .. admonition :: **Figure 4.9 **
660
660
:class: legend
661
661
662
662
Boids are governed by a set of three local rules (separation, cohesion and
@@ -874,17 +874,17 @@ velocity and position:
874
874
875
875
We finally visualize the result using a custom oriented scatter plot.
876
876
877
- .. admonition :: **Figure 6 **
877
+ .. admonition :: **Figure 4.10 **
878
878
:class: legend
879
879
880
880
Boids is an artificial life program, developed by Craig Reynolds in 1986,
881
881
which simulates the flocking behaviour of birds.
882
882
883
883
.. raw :: html
884
884
885
- <video width =" 100%" class =" bordered" controls >
886
- <source src =" data/boids.mp4" type =" video/mp4" >
887
- Your browser does not support the video tag. </video >
885
+ <video width =" 100%" class =" bordered" controls >
886
+ <source src =" data/boids.mp4" type =" video/mp4" >
887
+ Your browser does not support the video tag. </video >
888
888
889
889
890
890
0 commit comments