Simone Gabbriellini
2013-Apr-19 12:52 UTC
[R] how to measure similarity between vectors of different length
Dear R-People, I am trying to measure distances between an empiric vector and two random vectors. Since one of the synthetic vectors has different length from the empirical one, I tried to introduce 0s to make all vectors have the same length, but this introduces a bias in the measurement. Since I have a lot of simulations of the two random vectors and I can boxplot them, I am thinking about this solution: calculate how many points of the empirical vector is in each boxplot area, where 0 means that no empirical point is matched, and 1 means that every empirical point has been captured by each random vectors. I am not a statistician, and I think that this solution may already have been implemented in R, but I do not know where to search for this, so I do welcome every suggestion/advice you might give me. Best regards, Simone -- Simone Gabbriellini, PhD PostDoc@DISI, University of Bologna mobile: +39 340 39 75 626 email: simone.gabbriellini@unibo.it academia.edu: http://goo.gl/7pq62 DigitalBrains srl Amministratore mobile: +39 340 39 75 626 email: simone.gabbriellini@digitalbrains.it home: www.digitalbrains.it [[alternative HTML version deleted]]