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

Particle mutate up to event (not timestamp) #18

Open
6 tasks done
tmelliott opened this issue Nov 22, 2018 · 0 comments
Open
6 tasks done

Particle mutate up to event (not timestamp) #18

tmelliott opened this issue Nov 22, 2018 · 0 comments

Comments

@tmelliott
Copy link
Owner

tmelliott commented Nov 22, 2018

In the case that Event is a GPS position

  • travel until delta = 0

In the case that Event is a stop time update

  • travel at least until delta = 0
  • continue travel ahead until particle arrives at (and departs, if departure Event) e.stop_index

When commencing an iteration

  • remove delta_ahead from delta to wait for vehicle to catch up to particle
  • if departure_time > _timestamp, randomise remaining dwell time (allows resampled particles to diversify)

Other

  • if at a stop, be sure to set departure_time when leaving stop
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

No branches or pull requests

1 participant