Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClusterTimeSimulation #19

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

alikateic
Copy link

@alikateic alikateic commented Sep 4, 2023

Fix #6 closes #18
Fix #10

Copy link
Collaborator

@BeastyBlacksmith BeastyBlacksmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a good idea to run a formatter like JuliaFormatter.jl over the code and also add some tests for MSD. (You can just copy the starting conditions of MQD and then calculate the expected values by hand)

src/simulations/ClusterTimeSimulation.jl Outdated Show resolved Hide resolved
test/test_Simulation.jl Outdated Show resolved Hide resolved
src/measures/MeanQuadraticDistance.jl Outdated Show resolved Hide resolved
src/measures/MeanQuadraticDistance.jl Outdated Show resolved Hide resolved
src/measures/MeanQuadraticDistance.jl Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
src/simulations/ClusterTimeSimulation.jl Outdated Show resolved Hide resolved
src/simulations/ClusterTimeSimulation.jl Outdated Show resolved Hide resolved
src/simulations/ClusterTimeSimulation.jl Outdated Show resolved Hide resolved
test/test_Simulation.jl Outdated Show resolved Hide resolved
test/test_Simulation.jl Outdated Show resolved Hide resolved
test/test_Simulation.jl Outdated Show resolved Hide resolved
Comment on lines 34 to 41
world2 = World(
v0=1.0,
n_dogs=100,
boxsize=50.0,
motion=BrownianMotion(noise=0.5, friction=1.0),
sheeps=DenseSheeps(20, n_sheeps=20),
)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally speaking it is not a good idea to have more collectors than items, since you might end up in the situation where all items are picked up and in the best case the simulation will just get stuck in that state

test/test_Simulation.jl Show resolved Hide resolved
@BeastyBlacksmith
Copy link
Collaborator

For posteriority:

  • fix on 32-bit
  • write tests for MSD
  • end simulation if there are no sheep on the grid anymore
  • refactor msd and mqd thresholds to be part of the MQD/MSD structs and make those fields of the ClustertimeSimulation to ease requesting values
  • implement getMSD(simulation)/getMQD(simulation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up CI Port missing Simulations
2 participants