Multi-dimensional wrapper to compute the multi-dimensional non-normalized (i.e., without z-normalization) distance profile for a given query window within the times series or sequence that is denoted by the `query_idx` index. Essentially, this is a convenience wrapper around `_multi
(
query_idx,
T_A,
T_B,
m,
T_B_subseq_isfinite,
p=2.0,
include=None,
discords=False,
excl_zone=None,
)
| 301 | |
| 302 | |
| 303 | def _maamp_multi_distance_profile( |
| 304 | query_idx, |
| 305 | T_A, |
| 306 | T_B, |
| 307 | m, |
| 308 | T_B_subseq_isfinite, |
| 309 | p=2.0, |
| 310 | include=None, |
| 311 | discords=False, |
| 312 | excl_zone=None, |
| 313 | ): |
| 314 | """ |
| 315 | Multi-dimensional wrapper to compute the multi-dimensional non-normalized (i.e., |
| 316 | without z-normalization) distance profile for a given query window within the |
| 317 | times series or sequence that is denoted by the `query_idx` index. Essentially, |
| 318 | this is a convenience wrapper around `_multi_mass_absolute`. |
| 319 | |
| 320 | Parameters |
| 321 | ---------- |
| 322 | query_idx : int |
| 323 | The window index to calculate the multi-dimensional distance profile |
| 324 | |
| 325 | T_A : numpy.ndarray |
| 326 | The time series or sequence for which the multi-dimensional distance profile |
| 327 | will be returned |
| 328 | |
| 329 | T_B : numpy.ndarray |
| 330 | The time series or sequence that contains your query subsequences |
| 331 | |
| 332 | m : int |
| 333 | Window size |
| 334 | |
| 335 | T_B_subseq_isfinite : numpy.ndarray |
| 336 | A boolean array that indicates whether a subsequence in `T_B` contains a |
| 337 | `np.nan`/`np.inf` value (False) |
| 338 | |
| 339 | p : float |
| 340 | The p-norm to apply for computing the Minkowski distance. Minkowski distance is |
| 341 | typically used with `p` being 1 or 2, which correspond to the Manhattan distance |
| 342 | and the Euclidean distance, respectively. |
| 343 | |
| 344 | include : numpy.ndarray, default None |
| 345 | A list of (zero-based) indices corresponding to the dimensions in `T` that |
| 346 | must be included in the constrained multidimensional motif search. |
| 347 | For more information, see Section IV D in: |
| 348 | |
| 349 | `DOI: 10.1109/ICDM.2017.66 \ |
| 350 | <https://www.cs.ucr.edu/~eamonn/Motif_Discovery_ICDM.pdf>`__ |
| 351 | |
| 352 | discords : bool, default False |
| 353 | When set to `True`, this reverses the distance profile to favor discords rather |
| 354 | than motifs. Note that indices in `include` are still maintained and respected. |
| 355 | |
| 356 | excl_zone : int |
| 357 | The half width for the exclusion zone relative to the `query_idx`. |
| 358 | |
| 359 | Returns |
| 360 | ------- |
no test coverage detected