Entering edit mode
Ladan Amini
▴
10
@ladan-amini-4733
Last seen 10.2 years ago
Hello,
I am using KLdist.matrix from bioDist package, and the KL distance
between
two time series is
slightly different for different runs.
Example:
n.th=rnorm(10^6,mean=0,sd=sqrt(0.1))
n.exp=rnorm(10^6,mean=0,sd=sqrt(0.5))
x <- rbindn.th,n.exp)
#run no.1
KLdist.matrix(x, symmetrize = TRUE)
#result:
# n.th
#n.exp 1.228867
#run no.2
KLdist.matrix(x, symmetrize = TRUE)
#result:
# n.th
#n.exp 1.142033
#run no.3
KLdist.matrix(x, symmetrize = TRUE)
#result:
# n.th
#n.exp 1.162144
I tried to fix the value of gridsizenumber, but it gives the following
error:
KLdist.matrix(x, symmetrize = TRUE,gridsizenumber=10)
Erreur dans .local(x, ...) : argument(s) inutilisé(s) (gridsizenumber
= 10)
ERROR
I would appreciate a lot if anyone can help me to solve this problem.
Thank!
Ladan
[[alternative HTML version deleted]]