Description
Intersect their first-depth sets and divide overlapCount by depth.
Ranking metrics compare order or discount relevance by position. Ties, one-based ranks, and normalization choices change the contribution of an individual pair or rank.
Intersect their first-depth sets and divide overlapCount by depth.
When to use this tool
Use Ranked Prefix Overlap Depth when you need one rank discount, tie block, or pairwise contribution.
How to use the tool and how it works
- Enter firstRanking, secondRanking, depth. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read overlapCount, overlapFraction. Use the output convention below.
Require unique IDs throughout both rankings and a positive depth within both lengths. Intersect their first-depth sets and divide overlapCount by depth.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstRanking | First Ranking | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| secondRanking | Second Ranking | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| depth | Depth | Required. Safe integer; minimum 1. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| overlapCount | Overlap Count | Required. Safe integer. |
| overlapFraction | Overlap Fraction | Required. Finite number. |
{
"input": {
"firstRanking": [
"a",
"b",
"c"
],
"secondRanking": [
"b",
"d",
"a"
],
"depth": 2
},
"output": {
"overlapCount": 1,
"overlapFraction": 0.5
}
} Limitations and assumptions
- This measures shared membership rather than agreement of ordering within the prefixes; ties and missing IDs must be resolved beforehand.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Evaluate the full ranked set with a documented gain transformation, tie convention, and normalization.
References
Similar or alternative tools
- Percentile Position Tie Label
Return 100 × less/n, 100 × (less+equal)/n, and 100 × (less+equal/2)/n.
- Set Membership Four Way Label
Map the two Boolean membership flags to intersection, first-only, second-only, or neither.