Do you need cosine distance and correlation between vectors or between variables (elements of vector)? It would be helpful if you could tell us details of your task.

On Thu, May 22, 2014 at 5:49 PM, jamal sasha <> wrote:
  I have bunch of vectors like
.... and so on.

and  I want to compute cosine similarity and pearson correlation using pyspark.. 
How do I do this?
Any ideas?