LqDist {qmvs} | R Documentation |
Calculation of the distance between two data sets
Description
LqDist
calculates the Wasserstein metric or Kolmogorov-Smirnov
distance between two data sets.
Usage
LqDist(E1, E2, q=1)
Arguments
E1 , E2 |
Vectors of data between which a distance is to calculate. |
q |
Option for the distance measure. If |
Value
A positive number.
Author(s)
Yiq Li, yiqi.li@web.de,https://www.xing.com/profile/Yiqi_Li3, Martin Schlather,martin.schlather@uni-mannheim.de,https://www.wim.uni-mannheim.de/schlather/
References
Li, Yiqi (2020) Visual search as a queueing process. Doctoral dissertation, University of Mannheim.
See Also
Examples
simdata1 <- sim.ny(par = c(30, 200, 250, 350), esterrorpar = c(-2.67, 0.0094,
0.0299, 0.0020, 1.13), c = 4, k = 12, N = 10000, pr = TRUE, seed = 0)
simdata2 <- sim.ny(par = c(30, 200, 250, 350), esterrorpar = c(-2.67, 0.0094,
0.0299, 0.0020, 1.13), c = 4, k = 12, N = 10000, pr = TRUE, seed =
12345)
simcorrectRT1 <- subset(simdata1, simdata1[,2] == TRUE, select = 1)
simcorrectRT2 <- subset(simdata2, simdata2[,2] == TRUE, select = 1)
LqDist(simcorrectRT1, simcorrectRT2, q=1)
[Package qmvs version 0.2.0 Index]