example:
This is just a proof of concept package. Please do not use unless instucted by author.
import tasep # import this awesome module
from matplotlib import pyplot as plt # for ploting.
N = 1000 # size of the tasep
t = tasep.Tasep(N) # create the tasep
r = tasep.RandState() # This provides random numbers for tasep.
# normal tasep
#rho = t.evolve(alpha=0.8, beta=0.8, mc_step=10000000, rand=r)
# lk_tasep
# simulate
rho = t.lk_evolve(alpha=0.2, beta=0.2, Omega_a=0.3, Omega_d=0.3,
mc_step=100000, rand=r)
# plot the density.
plt.plot(rho)
plt.xlim(1, N)
plt.ylim(0, 1)
plt.show()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tasep-0.0.3-1.tar.gz
(18.7 kB
view details)
File details
Details for the file tasep-0.0.3-1.tar.gz.
File metadata
- Download URL: tasep-0.0.3-1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cb1d5d11a1c0929bb333f363141ad2e81b86b637e10290b2999f5d23b308894
|
|
| MD5 |
f276e5fe9b4fbac0efa3ab9c4bbde878
|
|
| BLAKE2b-256 |
f4cd2f41947d476d5add8183c71c8f3d1ee66bb26dee48ab4bdef586ea34e906
|