Learn R Programming

TrajDataMining (version 0.1.6)

speedCluster: Speed Cluster

Description

Method for check the regions where speed was lower than the defined parameter

Usage

speedCluster(track, avg, minT, sl)

# S4 method for Track,numeric,numeric,numeric speedCluster(track, avg, minT, sl)

Arguments

track

Represents a single trajectory followed by a person, animal or object

avg

Is the average speed of track

minT

Is the minimun period at the speed of track

sl

Is the speed limit of track

Value

Returns regions where speed was lower than the defined parameter

Details

Order the speed so it will start with the slowest speed cluster

Examples

Run this code
# NOT RUN {
avgSpeed <- mean(A1@connections$speed)

minSpeed <- min(A1@connections$speed)

speed <- speedCluster(A1,avgSpeed,minSpeed,586)
# }

Run the code above in your browser using DataLab