Skip to content

Main content

Working Memory Set Overlap Tool

Calculate working memory set overlap from explicit caller-supplied inputs.

Loading tool…

Description

Compare two working-memory token sets.

Cognitive research records can encode stimuli, response timing, probability assumptions and observation support. Local differences and caller-defined tolerance labels do not establish perceptual validity, a cognitive mechanism, statistical equivalence or a clinical assessment.

Compare two working-memory token sets.

When to use this tool

Use Working Memory Set Overlap when checking a supplied cognitive-task timing, stimulus, probability or evidence convention.

How to use the tool and how it works

  1. Enter first, second. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read overlap, firstOnly, secondOnly. Use the output convention below.

Compare two working-memory token sets. Return distinct overlap, firstOnly and secondOnly counts by literal membership and deduplication.1

Input fieldMeaning and unitsAccepted input
firstFirstRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
secondSecondRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
overlapOverlapRequired. Safe integer.
firstOnlyFirst OnlyRequired. Safe integer.
secondOnlySecond OnlyRequired. Safe integer.
json
{
  "input": {
    "first": [
      "a",
      "b"
    ],
    "second": [
      "b",
      "c"
    ]
  },
  "output": {
    "overlap": 1,
    "firstOnly": 1,
    "secondOnly": 1
  }
}

Limitations and assumptions

  • Token equality does not establish recall accuracy, memory capacity, semantic equivalence or a clinical assessment.
  • 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.

Alternative or Complementary methods

Use a validated study design, calibrated measurements and appropriate statistical/professional interpretation for cognitive or health conclusions.

References

  1. Calculation and input contract: cognitive-science/working-memory-set-overlap — tool.io

Similar or alternative tools