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

Take samples at distances proportional to speed. Refresh proportional to speed. #112

Closed
wants to merge 3 commits into from

Conversation

mschauer
Copy link
Owner

Solution to #110

@mschauer
Copy link
Owner Author

@SebaGraz

t, x, v, V = u
a, b, Δ = abc
τ = t + poisson_time(a, b, rand(rng))
τrefresh = t + waiting_time_ref(rng, flow)/V
Copy link
Owner Author

Choose a reason for hiding this comment

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

Refreshment at intensity corresponding to speed

if τref < t′
t, _ = move_forward!(τref - t, t, x, θ, Flow)
refresh!(rng, θ, Flow)
if t + Δrec/V <= t′ # record! (large speed, more records)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Take samples of the particle position at deterministic time intervals (to reduce sampling error), but measure time proportional to speed (large speed, more samples taken)

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.

1 participant