Programs from homework from course
Programs from tutorial from course
Programs from lectures from course
Code I have written for course: Statistical Mechanics and Computations and also to familiarize myself with git. Includes exercises from the textbook Statistical Mechanics: Algorithms and Computations by Werner Krauth.
- smac.c Useful functions
- 1.1 Implement Algorithm 1.1. Plot error and investigate relationship with N.
- direct-plot.py
- 1.2 Implement Algorithm 1.2. Plot error and rejection rate.
- markov-pi.py
- 1.3 Store state in file
- direct.py
- smacfiletoken.py
- 1.4 Use table
- markov-discrete-pebble.py
- large-markov.pi
- 1.8 Eigenvalues of transfer matrix
- transfer.m
- 1.13 Vectors within Uniform sphere
- sphere-test.py
-
1.9 Sample permutations
-
permutation.py
-
permutation-test.py
-
permutation-histogram.py
-
1.12 Gauss
-
naivegauss.py
-
boxmuller.py
- 1.18 Binomial Convolution
- binomialconvolution.py
- 1.22 Importance sampling
- direct.gamma-zeta.py
- markov-zeta.py
- directDisksAny.py