poconbhui / hare-and-puma Goto Github PK
View Code? Open in Web Editor NEWImplementation of a predator-prey PDE using bash.
Implementation of a predator-prey PDE using bash.
Hare And Puma ------------- hare_puma calculates the following PDEs for the distribution of hares and pumas on an island. dH/dt = rH - aHP + k(d2H/dx2 + d2H/dy2) dP/dt = bHP - mP + l(d2P/dx2 + d2P/dy2) Usage: hare_puma.sh config_file Config file: land_file=path/to/land.dat hare_file=path/to/hare.dat puma_file=path/to/puma.dat var_dt=0.1 var_l=0.4 var_m=0.4 ... Variables not defined in the config file will be set to some sane default. Note that the land_file, hare_file and puma_file are currently required. Example files: land_file.dat: 5 5 0 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 hare_file.dat: 5 5 0 0.34 0 0 3.5 0 2.66 3.2 0 4.1 1.23 1.12 2.3 2.67 3.5 2.099 0 1.9 2.43 0 2.53 2.2 1.89 0 0 Note that the land files are 0 for water and 1 for land, and the hare and puma files define the density of hares or pumas in each tile location. The hare and puma tiles must be 0 where the land tiles are 0, and must be a positive number. There is no need to pad the hare or puma files so the columns line up, it just looks nice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.