Did I find the right examples for you? yes no

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

src/p/y/pypreprocess-HEAD/pypreprocess/coreg.py   pypreprocess(Download)
                       save_vols
                       )
from .kernel_smooth import (fwhm2sigma,
                            centered_smoothing_kernel
                            )
        # create separable filter
        lim  = np.ceil(fwhm * 2)
        krn1 = centered_smoothing_kernel(fwhm[0],
                                         np.linspace(-1 * lim[0], lim[0],
                                                      num=2 * lim[0]))
        krn1 = krn1 / np.sum(krn1)
        krn2 = centered_smoothing_kernel(fwhm[1],