def test11(): X = np.array([[10, 11, 9], [4, 6, 9]]).T Z = fracdiff(X, order=1) target = np.array([[np.nan, 1.0, -2.0], [np.nan, 2.0, 3.0]]).T npt.assert_allclose(Z, target)
def test8(): x = np.array([10, 11, 9]) z = fracdiff(x, order=2) target = np.array([np.nan, np.nan, -3.0]) npt.assert_allclose(z, target)
def test7(): x = np.array([10, 11, 9]) z = fracdiff(x, order=1) target = np.array([np.nan, 1.0, -2.0]) npt.assert_allclose(z, target)
def test1(): x = np.array([10, 11, 9]) w = [1.0, -1.0] z = fracdiff(x, weights=w) target = np.array([np.nan, 1.0, -2.0]) npt.assert_allclose(z, target)
def test4(): x = np.array([10, 11, 9]) z = fracdiff(x, order=2, truncation='find') target = np.array([np.nan, np.nan, -3.0]) npt.assert_allclose(z, target)