Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/labs/utils/__init__.py   nipy(Download)
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from .routines import (quantile, median, mahalanobis, svd, permutations,
                       combinations, gamln, psi)
from .zscore import zscore

src/n/i/nipy-0.3.0/nipy/labs/utils/tests/test_misc.py   nipy(Download)
from scipy import special
 
from ..routines import median, mahalanobis, gamln, psi
 
from nose.tools import assert_true
    def test_median(self):
        x = np.random.rand(100)
        assert_almost_equal(median(x), np.median(x))
 
    def test_median2(self):
        x = np.random.rand(101)
        assert_equal(median(x), np.median(x))
    def test_median3(self):
        x = np.random.rand(10, 30, 11)
        assert_almost_equal(np.squeeze(median(x,axis=1)), np.median(x,axis=1))
 
    def test_mahalanobis(self):