Skip to content

Explore possibilities for storing speed statistics in higher fidelity #3

@bmander

Description

@bmander

The plan is to digest GPS point updates into speed statistics for way segments. The statistics will be keyed to:

way_id, node_start_index, node_end_index, hour_of_week

The easiest way to store speed statistics as a rolling average, with fields

count, mean

In this case, every time a new speed is detected which matches the key, count = count+1 and mean=((mean*count)+newSpeed)/(count+1). That's simple enough.

But what if we want to know the distribution of speeds? How can we update such a distribution incrementally?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions