Here is an example on calculating the Pearson Distance for ranking data. You can read about the Pearson Distance algorithm in Programming Collective Intelligence. The comments will speak to that particular example.
I'm Federico Feroldi, a visionary developer and technology enthustiast. This blog will follow my latest projects and interests about my life and my job. I hope you'll enjoy and contribute with your comments.