def test_actual_results_paa(X, start, end, arr_desired):
    """Test that the actual results are the expected ones."""
    X = np.asarray(X)
    start = np.asarray(start)
    end = np.asarray(end)
    n_timestamps_new = start.size
    n_samples, n_timestamps = X.shape
    arr_actual = _paa(X, n_samples, n_timestamps, start, end, n_timestamps_new)
    np.testing.assert_allclose(arr_actual, arr_desired, atol=1e-5, rtol=0.)
Test that the actual results are the expected ones.
pyts/approximation/tests/test_paa.py