Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
accidentally committed this test
Browse files Browse the repository at this point in the history
  • Loading branch information
mneedham committed Jan 25, 2019
1 parent aa3afcd commit 872cabe
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@
import static junit.framework.TestCase.assertNull;

public class WeightedInputTest {

@Test
public void blah() {
double[] weights1 = new double[]{3, 0, 9, 0, 5};
double[] weights2 = new double[]{1, 2, 3, 4, 4, 4, 4, 5, 6};

WeightedInput input1 = new WeightedInput(1, weights1);
WeightedInput input2 = new WeightedInput(2, weights2);

SimilarityResult similarityResult = input1.pearson(null, -1.0, input2);

assertEquals(1.0, similarityResult.similarity, 0.01);
}

@Test
public void pearsonNoCompression() {
double[] weights1 = new double[]{1, 2, 3, 4, 4, 4, 4, 5, 6};
Expand Down

0 comments on commit 872cabe

Please sign in to comment.