test.verification.3d: Statistical Verification of the simulated track

View source: R/testing3D.R

test.verification.3dR Documentation

Statistical Verification of the simulated track

Description

Uses two-sample Kolmogorov-Smirnov test or the one-sample t-test to compare the geometric characteristics of the original track with the characteristics of the simulated track.

Usage

test.verification.3d(track1, track2, alpha = 0.05, plot = FALSE, test = "ks")

Arguments

track1

data.frame or list of data.frames with x,y,z coordinates of the original track

track2

data.frame or list of data.frames with x,y,z coordinates of the simulated track

alpha

scalar: significance level, default alpha = 0.05

plot

logical: plot the densities or differences of turn angle, lift angle and step length of the two tracks?

test

character: either "ks" or "ttest" to choose the kind of test procedure.

Value

Test objects of the 6 two-sample Kolmogorov-Smirnov test conducted.

Note

By choosing test = "ttest" a random sample, without replacement is taken from the longer track, to shorten it to the length of the longer track. The order of the shorter track is also sampled randomly. Then the two randomly ordered vectors of turn angles, lift angles and step lengths are substracted from each other. If the both tracks stem from the same distributions the the mean deviatio should tend to towards zero, therefore the difference is tested two-sided against mu = 0 with a one-sample t-test.

By setting test = "ks" a two-sample Kolmogorov-Smirnov test is carried out on the distributions of turn angles, lift angles and step lengths of the two tracks.

Examples

test.verification.3d(niclas, niclas)

munterfinger/eRTG3D documentation built on March 25, 2022, 1:22 a.m.