[R] Bhattacharyya in R
Dzu
dizem.uerek at alumni.fh-aachen.de
Mon Jul 1 22:47:56 CEST 2013
Dear R-user,
I am trying to apply bhattacharyya-distance function to my data. Did anybody
use it before ?
My code is the following
#Bhattacharya Distance measure
#a and b are vectors
a <- (1,2,3,4,2,2,2,2,2,2,2,1,4,5,6,-1,-1,-1,-1,-1,-3,-3,-3)
b <-
(1.1,1.1,1.2,1.2,1.2,1.2,1.2,2.1,2.1,2.2,2.2,2,0,0,0,0,2,2,2,2,2,3.1,3.1)
dist <- bhattacharyya.matrix(a,b,missclasification = TRUE)
plot(dist)
Could somebody give me a guide on the syntax ?
Thanks
Dizem
--
View this message in context: http://r.789695.n4.nabble.com/Bhattacharyya-in-R-tp4670671.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list