class SimilaritiesFunc {

    @UserFunction("gds.alpha.similarity.euclidean")
    @Description("RETURN gds.alpha.similarity.euclidean(vector1, vector2) - Given two collection vectors, calculate similarity based on euclidean distance")
    public double euclideanSimilarity(@Name("vector1") List<Number> vector1, @Name("vector2") List<Number> vector2) {
        return 1.0D / (1 + euclideanDistance(vector1, vector2));
    }

}