                             b.append(_b[i])
                         }
                     }
-                    return compute(a, B: b)
+                    return compute(A: a, B: b)
                 }
             }
             else {

        let a = Set(A)
        let b = Set(B)
        
        return 2.0 * Double(a.intersect(b).count) / (Double(a.count) + Double(b.count))
    }
    
    /** Hamming distance **/

        let a = Set(A)
        let b = Set(B)
        
        return Double(a.intersection(b).count) / Double(a.union(b).count)
    }
    
    /** Jaccard distance **/
    private func jaccardDist(A: [Double], B: [Double]) -> Double {
        return 1.0 - jaccardIndex(A: A, B: B)
    }
    
    /** Dice coeeficient **/
