Class MeanSpeed

    • Constructor Detail

      • MeanSpeed

        public MeanSpeed​(TotalTravelDistance travelDistance,
                         TotalTravelTime travelTime)
        Parameters:
        travelDistance - TotalTravelDistance; travel distance indicator
        travelTime - TotalTravelTime; travel time indicator
    • Method Detail

      • calculate

        protected <G extends GtuDataInterfaceSpeed calculate​(Query<G> query,
                                                               Time startTime,
                                                               Time endTime,
                                                               List<TrajectoryGroup<G>> trajectoryGroups)
        Calculate value for given trajectory group.
        Specified by:
        calculate in class AbstractIndicator<Speed>
        Type Parameters:
        G - gtu data type
        Parameters:
        query - Query<G>; query
        startTime - Time; start time of interval to calculate indicator over
        endTime - Time; start time of interval to calculate indicator over
        trajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for
        Returns:
        value for given trajectory group