Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/labs/group/tests/test_displacement_field.py   nipy(Download)
import numpy as np
 
from ..displacement_field import displacement_field, gaussian_random_field
 
def make_data(n=10, dim=20, r=5, mdim=15, maskdim=20, amplitude=10, noise=1, jitter=None, activation=False):
    def test_sample(self, verbose=False):
        data, XYZ, mask, XYZvol, vardata, signal = make_data(n=20, dim=20, r=3, mdim=15, maskdim=15, amplitude=5, noise=1, jitter=1, activation=True)
        n=data.shape[0]
        D = gaussian_random_field(XYZ, 2.5, n)
        for i in xrange(n):