package
0.0.0-20230712103438-30a0ae6ad38f
Repository: https://github.com/underlx/disturbancesmlx.git
Documentation: pkg.go.dev

# Functions

AverageSpeed returns the average service speed in km/h based on the trips in the specified time range.
AverageSpeedCached returns the average speed of trips within the specified period, if it has been computed already, or begins computing it, if it has not.
AverageSpeedFilter returns the average service speed in km/h based on the trips in the specified time range that match the provided filter.
Initialize initializes the package.
NewReportHandler initializes a new ReportHandler and returns it.
NewStatsHandler returns a new, initialized StatsHandler.
NewVehicleETAHandler returns a new VehicleETAHandler.
NewVehicleHandler returns a new, initialized VehicleHandler.
SimulateRealtime looks at trips to compute a stream of entry beacons, as if they were being received in real time, and outputs a CSV to writer.
TripsScatterplotNumTripsVsAvgSpeed returns data for a scatterplot showing possible relations between the number of users in the network and the average trip speed.
TypicalSecondsByDowAndHour calculates TypicalSeconds per hour of day and week.
UpdateStatusMsgTypes updates the MsgTypes of existing line statuses.
UpdateTypicalSeconds calculates and updates the TypicalSeconds for all the Connections and Transfers where that can be done using the registered Trips from the past month.

# Variables

No description provided by the author
ErrInfoNotReady is returned when the requested information is not yet available.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

PassengerReading represents a datapoint of real-time information as submitted by a user.
ReportHandler implements resource.ReportHandler.
StatsHandler implements resource.StatsCalculator and resource.RealtimeStatsHandler.
TrainETA contains information about the estimated arrival time of a train for a station and direction.
TripsScatterplotNumTripsVsAvgSpeedPoint represents a datapoint for the TripsScatterplotNumTripsVsAvgSpeed scatterplot.
TypicalSecondsEntry makes the items of the result of ComputeTypicalSeconds.
TypicalSecondsMinMax returns per-connection/transfer max and min of ComputeTypicalSeconds.
VehicleETAHandler aggregates and manages VehicleETAs.
VehicleHandler implements resource.RealtimeVehicleHandler.