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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.