getVmaxtrack: getVmaxtrack

Description Usage Arguments Value Author(s) Examples

View source: R/speed.R

Description

This functions calculates the maximum speed found in a trajectory. The maximum speed is based on linear movement between measured points.

Usage

1
getVmaxtrack(track)

Arguments

track

the trajectory as STP_Track or Track

Value

max speed of the moving object

Author(s)

Mark ten Vregelaar

Examples

1
2
3
4
5
6
7
8
## get a track dataset
data(A3)# see trajectories package: importenvirocar
car_track<-Track(A3)# recalculate connections data
head(car_track@connections)# distance in meters and speed in m/s
## get maximum speed
speed_ms <- getVmaxtrack(car_track)# speed in m/s
# maximum speed. It is the speed required to be able to reach every point in time in km/h
speed_ms*3.6

markvregel/STPtrajectories documentation built on May 21, 2019, 12:25 p.m.