To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.misc.support.unique_combinations

mvpa2.misc.support.unique_combinations(L, n, sort=False)

Return unique combinations form a list L of objects in groups of size n.

Parameters :

L : list

list of unique ids

n : int

length of the subsets to return

sort : bool, optional

if True – result is sorted before returning

If you are intended to use only a small subset of possible :

combinations, it is advised to use a generator :

`xunique_combinations`. :

Previous topic

mvpa2.misc.support.transform_with_boxcar

Next topic

mvpa2.misc.support.value2idx

NeuroDebian

NITRC-listed