public class SegmentSpeedSample extends Object implements Serializable
Constructor and Description |
---|
SegmentSpeedSample(double averageSpeed,
double[] hourBins)
create a speed sample using a function
|
SegmentSpeedSample(io.opentraffic.engine.data.pbf.ExchangeFormat.BaselineStats stats)
Create a speed sample from an OpenTraffic PBF stats object
|
SegmentSpeedSample(io.opentraffic.engine.data.stats.SummaryStatistics stats)
Create a speed sample from an OpenTraffic stats object directly
|
Modifier and Type | Method and Description |
---|---|
double |
getSpeed(long time)
Get a speed estimate in meters per second for the time specified (in milliseconds since the epoch)
|
public SegmentSpeedSample(io.opentraffic.engine.data.pbf.ExchangeFormat.BaselineStats stats)
public SegmentSpeedSample(io.opentraffic.engine.data.stats.SummaryStatistics stats)
public SegmentSpeedSample(double averageSpeed, double[] hourBins)
Copyright © 2018. All rights reserved.