Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/registration/tests/test_cubic_spline.py   nipy(Download)
import numpy as np
 
from .._registration import (_cspline_transform,
                             _cspline_sample1d,
                             _cspline_sample4d)
    x = np.arange(100)
    b = np.zeros(100)
    b = _cspline_sample1d(b, c, x)
    assert_array_almost_equal(a, b)
    b = _cspline_sample1d(b, c, x, mode='nearest')