Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/examples/labs/hierarchical_rois.py   nipy(Download)
import nipy.labs.spatial_models.hroi as hroi
import nipy.labs.utils.simul_multisubject_fmri_dataset as simul
from nipy.labs.spatial_models.discrete_domain import domain_from_binary_array
 
##############################################################################
 
# create a domain descriptor associated with this
domain = domain_from_binary_array(dataset ** 2 > 0)
 
nroi = hroi.HROI_as_discrete_domain_blobs(domain, dataset.ravel(),

src/n/i/nipy-0.3.0/examples/labs/bayesian_structural_analysis.py   nipy(Download)
import nipy.labs.utils.simul_multisubject_fmri_dataset as simul
import nipy.labs.spatial_models.bayesian_structural_analysis as bsa
from nipy.labs.spatial_models.discrete_domain import domain_from_binary_array
 
 
    lmax = 0
    bdensity = 1
    dom = domain_from_binary_array(np.ones(ref_dim))
 
    if method == 'simple':