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

feature: stats for high-water-mark, busiest-time, and queue-like vs. stack-like #8

Closed
tevpg opened this issue May 4, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@tevpg
Copy link
Collaborator

tevpg commented May 4, 2023

more stats! Fun ones! Possible keyword "z" [zany stats?]

see mockups in screen mockups text file.

reports on:

  • daily high water mark (most bikes on hand at any given time)
  • busiest times of day
  • both of above as histograms
  • degree to which bike activity was queue-like vs stack-like (Todd is probably the only person who cares about this one)
@tevpg tevpg changed the title fun stats feature: fun stats May 4, 2023
@tevpg
Copy link
Collaborator Author

tevpg commented May 6, 2023

Queue-like or Stack-like?

Been thinking about how to measure this. I think something like: a stay is queue-like to the degree that the stays end after stays that began earlier than it. And vice versa. See diagram with logic

It could be a bit expensive because it is semi-cartesian (each stay is compared with ~1/2 of all other stays) but because only ~100 or so bikes, may not be a problem

The data structure this will need is a list of stays, each with its start time and end time (and for convenience, duration). Times would be better as num, to help with charting (see next paragraph).

This data structure also lends itself well to making charts like this to visualize bike visits.

@tevpg tevpg changed the title feature: fun stats feature: stats for high-water-mark, busiest-time, and queue-like vs. stack-like May 6, 2023
@tevpg
Copy link
Collaborator Author

tevpg commented May 10, 2023

Combine these into summary statistics report. Ties to issue #11

Proposed format (to keep compact on that small screen):

Summary statistics at HH:MM (2 bike(s) still at valet):

Bike check-ins:      Stays:
  Total:   107         < 1.5h:      26
  AM:       49         1.5-5.0h:    51
  PM:       58         >5.0h:       30
  Regular:  64         Max:      11:13 [tag(s) wb3]
  Oversize: 43         Min:      00:01 [tag(s) wc10, we13, we12]
                       Median:   02:33
                       Mode:     02:00 (by 2 bikes, 30 minute blocks)

Most bikes on hand at valet:
                Regular  Oversize  Total  Time
Most regular:      60       20       80    10:15,14:30
Most oversize:     42       31       73    13:11
Most combined:     55       29       84    13:55

Most bike transactions:
            CheckedIn  Out   Total
09:30-10:00      45      0      45
16:00-16:30       5     39      44
08:00-08:30      37      0      37

Stays were 47% queue-like, 53% stack-like

@tevpg
Copy link
Collaborator Author

tevpg commented May 10, 2023

Combined this issue into #11, marking this one as duplicate

@tevpg tevpg closed this as completed May 10, 2023
@tevpg tevpg added the duplicate This issue or pull request already exists label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant