argia-migrator - v0.3.0
    Preparing search index...

    Function overlap

    • A starting point for deciding readiness from compare events, not a verdict: which threshold means "ready" is still yours. Duplicate ids within one list are counted once, at their first rank.

      Type Parameters

      • M

      Parameters

      • from: readonly Hit<M>[]
      • to: readonly Hit<M>[]

      Returns Overlap

      onEvent: (event) => {
      if (event.type === "compare") {
      const { recall, rankOverlap } = overlap(event.from, event.to);
      metrics.observe("argia.recall", recall);
      metrics.observe("argia.rank_overlap", rankOverlap);
      }
      }