Class MeanDensity
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator<LinearDensity>
org.opentrafficsim.kpi.sampling.indicator.MeanDensity
Total travel time divided by the sum of areas (X * T).
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <G extends GtuData>
LinearDensitycalculate(Query<G, ?> query, Time startTime, Time endTime, List<TrajectoryGroup<G>> trajectoryGroups) Calculate value for given trajectory group.final StringtoString()Methods inherited from class org.opentrafficsim.kpi.sampling.indicator.AbstractIndicator
getValue, getValue
-
Constructor Details
-
MeanDensity
- Parameters:
travelTime- TotalTravelTime; travel time indicator
-
-
Method Details
-
calculate
protected <G extends GtuData> LinearDensity calculate(Query<G, ?> query, Time startTime, Time endTime, List<TrajectoryGroup<G>> trajectoryGroups) Calculate value for given trajectory group.- Specified by:
calculatein classAbstractIndicator<LinearDensity>- Type Parameters:
G- gtu data type- Parameters:
query- Query<G, ?>; querystartTime- Time; start time of interval to calculate indicator overendTime- Time; start time of interval to calculate indicator overtrajectoryGroups- List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for- Returns:
- value for given trajectory group
-
toString
-