This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-mudrod.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a9bc00  fixed bugs in PODAACMetadataFeature (#26)
1a9bc00 is described below

commit 1a9bc00ee7e845d49d16c480b1d2c2ce49bade3e
Author: quintinali <[email protected]>
AuthorDate: Wed May 23 12:00:29 2018 -0400

    fixed bugs in PODAACMetadataFeature (#26)
    
    Cast one of the operands of this division operation to a "double".
---
 .../sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java
 
b/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java
index d3f4230..d2b4e28 100644
--- 
a/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java
+++ 
b/core/src/main/java/org/apache/sdap/mudrod/recommendation/structure/PODAACMetadataFeature.java
@@ -306,7 +306,7 @@ public class PODAACMetadataFeature extends MetadataFeature {
           List<String> newAList = new ArrayList<>(aList);
           List<String> newBList = new ArrayList<>(bList);
           newAList.retainAll(newBList);
-          similarity = newAList.size() / lengthA;
+          similarity = (double)newAList.size() / lengthA;
         }
 
       } else if (valueA instanceof String) {

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to