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

[Suggestion] answer to "how many workers will I need?" for the README #124

Closed
Aiyubi opened this issue Aug 3, 2016 · 5 comments
Closed

Comments

@Aiyubi
Copy link

Aiyubi commented Aug 3, 2016

Posting this here first so someone else can check my math first.

For rectangular areas that have optimal distances:

numberofworkers = Area_to_check / Area_of_circle * overlap_correction_factor * scan_delay / 15 minutes
with
Area_of_circle = pi * (70m)²
scan_delay = configvalue
overlap_correction_factor = (overlap_area/2 regular_area) / regular_area =  ( pi -2   pi ) / (pi) = 2 - 2/pi ~ 1.37

How come this correction factor?
overlap_area (last formular): http://mathworld.wolfram.com/Circle-CircleIntersection.html
devided by 2 because every overlap belongs to 2 circles

Some example calculation:

numberofworkers = Area_to_check / (pi*(70m)²) *1.37 * 10s / (15*60s)
Area_to_check = 96 km² (Wroclaw) = 96 * 10^6 m²

->96 workers (best some more to account calculation and delays)

So we see: 1 worker per km²

@theresthatguy
Copy link

This is very helpful. Thank you.

@Aiyubi
Copy link
Author

Aiyubi commented Aug 3, 2016

And now a try for hexagonal (same link as above):
overlap_area = (pi - 3/2*sqrt(3) *2) * 2
overlap_correction_factor ~ 1.17

Results:
numer_of_workers = (pi * radius²) /( pi * 70m²) * 1.17 * 10s / (15*60s) = (radius_in_km)² * 2.65

Example:
a radius of 5.5km is around 95km² and with the formular above would be ~80 workers
So we now have 80 instead of 95 workers cause of the reduced overlap.

@Eskof
Copy link

Eskof commented Aug 8, 2016

Hello @Aiyubi and thanks, I'm pretty noob with math. How may I calculate this with 2 coordinate?
Thanks

@Aiyubi
Copy link
Author

Aiyubi commented Aug 8, 2016

@Eskof your /report tells you how many km² your area has

@modrzew
Copy link
Owner

modrzew commented Aug 9, 2016

Added in v0.5.0 IIRC. Thanks @Aiyubi!

@modrzew modrzew closed this as completed Aug 9, 2016
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

4 participants