def METHOD_NAME(Q, T):
    m = Q.shape[0]
    excl_zone = int(np.ceil(m / 4))
    max_distance = 0.3
    T, T_subseq_isfinite = core.preprocess_non_normalized(T, len(Q))
    for p in [1.0, 2.0, 3.0]:
        left = naive_aamp_match(
            Q,
            T,
            p=p,
            excl_zone=excl_zone,
            max_distance=max_distance,
        )
        right = aamp_match(
            Q,
            T,
            T_subseq_isfinite,
            p=p,
            max_matches=None,
            max_distance=max_distance,
        )
        npt.assert_almost_equal(left, right)