class SimilaritiesFunc {

    @UserFunction("gds.alpha.similarity.jaccard")
    @Description("RETURN gds.alpha.similarity.jaccard(vector1, vector2) - Given two collection vectors, calculate Jaccard similarity")
    public double jaccardSimilarity(@Name("vector1") List<Number> vector1, @Name("vector2") List<Number> vector2) {
        if (vector1 == null || vector2 == null) return 0;
        return jaccard(vector1, vector2);
    }

}