Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/labs/group/displacement_field.py   nipy(Download)
    # calculate the kernel:
    for ii in range(1, lw + 1):
        tmp = math.exp(- 0.5 * float(ii * ii) / sd)
        weights[lw + ii] = tmp
        weights[lw - ii] = tmp