Overlap Similarity (Beta)
The overlap coefficient, or Szymkiewicz–Simpson coefficient, is a similarity measure that measures the overlap between two finite sets.
The algorithm takes two vectors denoted by ListAccum
and returns the overlap coefficient between them.
This algorithm is implemented as a user-defined function. You need to follow the steps in Add a User-Defined Function to add the function to GSQL. After adding the function, you can call it in any GSQL query in the same way as a built-in GSQL function.
Specification
Parameters
Name | Description | Data type |
| An n-dimensional vector denoted by a |
|
| An n-dimensional vector denoted by a |
|
Return value
The overlap coefficient between the two vectors.
Example
Last updated