Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/n/i/nitime-0.4/nitime/algorithms/spectral.py   nitime(Download)
 
# To support older versions of numpy that don't have tril_indices:
from nitime.index_utils import tril_indices, triu_indices
 
 
        csd_mat /= norm
 
    upper_idc = triu_indices(M, k=1)
    lower_idc = tril_indices(M, k=-1)
    csd_mat[upper_idc] = csd_mat[lower_idc].conj()
            csdfs[i, j] = mtm_cross_spectrum(ti, tj, (wi, wj), sides=sides)
 
    upper_idc = triu_indices(M, k=1)
    lower_idc = tril_indices(M, k=-1)
    csdfs[upper_idc] = csdfs[lower_idc].conj()

src/n/i/nitime-0.4/nitime/analysis/coherence.py   nitime(Download)
 
# To suppport older versions of numpy that don't have tril_indices:
from nitime.index_utils import tril_indices, triu_indices
 
from .base import BaseAnalyzer
                coh_mat[i, j] /= (sxx * syy)
 
        idx = triu_indices(self.input.data.shape[0], 1)
        coh_mat[idx[0], idx[1], ...] = coh_mat[idx[1], idx[0], ...].conj()
 
                        )
 
        idx = triu_indices(self.input.data.shape[0], 1)
        coh_var[idx[0], idx[1], ...] = coh_var[idx[1], idx[0], ...].conj()
 

src/n/i/nitime-HEAD/nitime/analysis/coherence.py   nitime(Download)
 
# To suppport older versions of numpy that don't have tril_indices:
from nitime.index_utils import tril_indices, triu_indices
 
from .base import BaseAnalyzer
                coh_mat[i, j] /= (sxx * syy)
 
        idx = triu_indices(self.input.data.shape[0], 1)
        coh_mat[idx[0], idx[1], ...] = coh_mat[idx[1], idx[0], ...].conj()
 
                        )
 
        idx = triu_indices(self.input.data.shape[0], 1)
        coh_var[idx[0], idx[1], ...] = coh_var[idx[1], idx[0], ...].conj()
 

src/n/i/nitime-HEAD/nitime/algorithms/spectral.py   nitime(Download)
 
# To support older versions of numpy that don't have tril_indices:
from nitime.index_utils import tril_indices, triu_indices