LqDist | R Documentation |
LqDist
calculates the Wasserstein metric or Kolmogorov-Smirnov
distance between two data sets.
LqDist(E1, E2, q=1)
E1 , E2 |
Vectors of data between which a distance is to calculate. |
q |
Option for the distance measure. If |
A positive number.
distance
,
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.