Skip to content
Browse files

Moved PearsonCorrelation and EuclideanDistance to SimilarityScore nam…

…espace.
  • Loading branch information...
1 parent 5792732 commit 5b203fa1f08bf83c0eaa22f81779a93799374733 @robertgreiner committed
View
4 Recommender.Tests/Recommender.Tests.csproj
@@ -48,14 +48,14 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Common\FindSimilarReviewsTests.cs" />
- <Compile Include="EuclideanDistanceTests.cs" />
- <Compile Include="PearsonCorrelationTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Reviews\ReviewerTests.cs" />
<Compile Include="Instructions\SumProductsTests.cs" />
<Compile Include="Instructions\SumSquaresTests.cs" />
<Compile Include="Instructions\SumDifferenceSquaresTests.cs" />
<Compile Include="Instructions\SumScoresTests.cs" />
+ <Compile Include="SimilarityScore\EuclideanDistanceTests.cs" />
+ <Compile Include="SimilarityScore\PearsonCorrelationTests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
View
5 Recommender.Tests/EuclideanDistanceTests.cs → ...SimilarityScore/EuclideanDistanceTests.cs
@@ -1,7 +1,8 @@
-using NUnit.Framework;
+using NUnit.Framework;
using Recommender.Data;
+using Recommender.SimilarityScore;
-namespace Recommender.Tests
+namespace Recommender.Tests.SimilarityScore
{
[TestFixture]
class EuclideanDistanceTests
View
7 Recommender.Tests/PearsonCorrelationTests.cs → ...imilarityScore/PearsonCorrelationTests.cs
@@ -1,11 +1,8 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
using NUnit.Framework;
using Recommender.Data;
+using Recommender.SimilarityScore;
-namespace Recommender.Tests
+namespace Recommender.Tests.SimilarityScore
{
[TestFixture]
class PearsonCorrelationTests
View
6 Recommender/Recommender.csproj
@@ -45,10 +45,7 @@
<ItemGroup>
<Compile Include="Common\FindSimilarReviews.cs" />
<Compile Include="Data\ReviewerBuilder.cs" />
- <Compile Include="EuclideanDistance.cs" />
- <Compile Include="PearsonCorrelation.cs" />
<Compile Include="Reviews\Reviewer.cs" />
- <Compile Include="SimilarityScore.cs" />
<Compile Include="SimilarityScoreRunner.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Instructions\SimilarityScoreCommand.cs" />
@@ -56,6 +53,9 @@
<Compile Include="Instructions\SumSquares.cs" />
<Compile Include="Instructions\SumDifferenceSquares.cs" />
<Compile Include="Instructions\SumScores.cs" />
+ <Compile Include="SimilarityScore\EuclideanDistance.cs" />
+ <Compile Include="SimilarityScore\PearsonCorrelation.cs" />
+ <Compile Include="SimilarityScore\SimilarityScore.cs" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
View
4 Recommender/EuclideanDistance.cs → ...nder/SimilarityScore/EuclideanDistance.cs
@@ -1,10 +1,10 @@
-using System;
+using System;
using System.Collections.Generic;
using Recommender.Common;
using Recommender.Instructions;
using Recommender.Reviews;
-namespace Recommender
+namespace Recommender.SimilarityScore
{
public class EuclideanDistance : SimilarityScore
{
View
4 Recommender/PearsonCorrelation.cs → ...der/SimilarityScore/PearsonCorrelation.cs
@@ -1,10 +1,10 @@
-using System;
+using System;
using System.Collections.Generic;
using Recommender.Common;
using Recommender.Instructions;
using Recommender.Reviews;
-namespace Recommender
+namespace Recommender.SimilarityScore
{
public class PearsonCorrelation : SimilarityScore
{
View
2 Recommender/SimilarityScore.cs → ...mender/SimilarityScore/SimilarityScore.cs
@@ -1,4 +1,4 @@
-namespace Recommender
+namespace Recommender.SimilarityScore
{
interface SimilarityScore
{
View
1 Recommender/SimilarityScoreRunner.cs
@@ -1,5 +1,6 @@
using System;
using Recommender.Data;
+using Recommender.SimilarityScore;
namespace Recommender
{

0 comments on commit 5b203fa

Please sign in to comment.
Something went wrong with that request. Please try again.