pyscamp.abjoin

pyscamp.abjoin(a: List[float], b: List[float], m: int, **kwargs) Tuple[numpy.ndarray[numpy.float32], numpy.ndarray[numpy.int32]]

For each subsequence in time series A, finds the nearest neighbor in time series B.

Parameters:
  • a (1D array) – Time series, b will be queried for subsequences in a.

  • b (1D array) – Time series in which to search for matches for subsequences in a.

  • m (int) – Subsequence length to use for computing the matrix profile.

Returns:

A tuple. First element: The nearest neighbor distance of subsequences in a to time series b. Second element: The index (in b) of each nearest neighbor.

Return type:

Tuple of np.ndarray[float32] and np.ndarray[int32]