public void ReviewersThatHaveReviewedUniqueTitlesShouldNotBeSimilar()
 {
     var r1 = ReviewerBuilder.BuildReviewer1();
     var r2 = ReviewerBuilder.BuildAReviewerThatReviewedSomethingUnique();
     pearsonCorrelationScore = new PearsonCorrelation(r1, r2);
     Assert.AreEqual(0, pearsonCorrelationScore.Score());
 }
        private static void RunPearsonCorrelationWithLowScore()
        {
            var r1 = ReviewerBuilder.BuildReviewer1();
            var r2 = ReviewerBuilder.BuildReviewer2();
            var pearsonCorrelation = new PearsonCorrelation(r1, r2);

            Console.WriteLine("The Pearson Correlation between {0} and {1} is: {2}", r1.Name, r2.Name, pearsonCorrelation.Score());
        }
 public void TwoReviewersWithSomeSimilarReviewsShouldHaveTheSameScoreRegardlessOfOrder()
 {
     pearsonCorrelationScore = new PearsonCorrelation(ReviewerBuilder.BuildReviewer7(), ReviewerBuilder.BuildReviewer6());
     Assert.AreEqual(0.396, pearsonCorrelationScore.Score());
 }
 public void ReviewersThatHaveTheSameTasteShouldHaveAPerfectScore()
 {
     var r1 = ReviewerBuilder.BuildReviewer1();
     pearsonCorrelationScore = new PearsonCorrelation(r1, r1);
     Assert.AreEqual(1.0, pearsonCorrelationScore.Score());
 }