Skip to content

matchIntervals

matchIntervals(intervalsFrom, intervalsTo, options?): Uint32Array<ArrayBufferLike>

Defined in: packages/pleco-xa/src/sequence/matching.js:97

Match one set of time intervals to another, maximizing Jaccard similarity.

number[][]

(n, 2) source intervals.

number[][]

(m, 2) target intervals.

boolean = true

if true, throw when a query interval is disjoint from every target; if false, match the closest disjoint target instead.

Uint32Array<ArrayBufferLike>

for each source interval, the matched target index.