This content refers to an unreleased development version of PyMVPA
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.xunique_combinations

mvpa2.misc.support.xunique_combinations(L, n)

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

Parameters :

L : list

list of unique ids

n : int

grouping size

Adopted from Li Daobing :

http://code.activestate.com/recipes/190465/ :

(MIT license, according to activestate.com’s policy) :

Also good discussions on combinations/variations/permutations :

with various implementations are available at :

http://mail.python.org/pipermail/python-list/2004-October/286054.html :

Previous topic

mvpa2.misc.support.version_to_tuple

Next topic

mvpa2.misc.support.Event

NeuroDebian

NITRC-listed