general_shh
A repository containing code for a generalised Selfish Herd Hypothesis Model
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.6%) to scientific vocabulary
Repository
A repository containing code for a generalised Selfish Herd Hypothesis Model
Basic Info
- Host: GitHub
- Owner: TWA2Jerry
- Language: Julia
- Default Branch: main
- Size: 9.07 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
This is a repository containing code for a generalised Selfish Herd Hypothesis. The model primarily explores the effect of optimising for non-minimal domains.
To run the program, please ensure that you have the julia programming language installed. In addition, please have the packages installed: Agents CSV CairoMakie ColorSchemes Colors DataFrames GeometryBasics Images InteractiveDynamics LaTeXStrings PProf StatsBase TestImages VoronoiCells Profile Random
The main file for running in the simulations is "program.jl". Model parameters FOV, tdod, q, qp and m as well as other simulation details such as markers can be adjusted in "program.jl". You can run a simulation using the parameters by entering Julia, and typing: "include("program.jl")".
Images from a simulation are generated in the folder "Simulation_Images".
Global parameters, such as domain size, are set in "globalvars.jl". Specifically in this file, the number of agents in the model is set as variable nobirds. The size of the domain is set as the variable rect_bound.
Code for calculating the bounded DOD or Voronoi cells is contained in "halfplanebounded.jl". Unfortunately, this will most likely be hard to follow, and it is recommended that the user implements the code themselves based off the illustration in our paper/thesis.
Unfortunately, I will be unable to regularly maintain the repository, so it is possible that updates to some of the packages may make current syntax invalid. However, the code should work for the following versions of each package: Agents v6.2.4 CSV v0.10.15 CairoMakie v0.12.18 ColorSchemes v3.28.0 GeometryBasics v0.4.11 InteractiveDynamics v0.24.0 StatsBase v0.34.4 VoronoiCells v0.4.0
Owner
- Login: TWA2Jerry
- Kind: user
- Repositories: 1
- Profile: https://github.com/TWA2Jerry
Citation (CITATION.cff)
authors: - family-names: "Zhou" given-names: "Jesse" title: "Selfish Herd and bounded DOD code" date-released: 2024-06-07 url: "https://github.com/TWA2Jerry/General_SHH.git"
GitHub Events
Total
- Push event: 24
- Fork event: 1
- Create event: 2
Last Year
- Push event: 24
- Fork event: 1
- Create event: 2