function that produces multinomial combinations.
> (Python's itertools module does ordinary combinations, but not multinomial
> combinations). The code essentially works, except that the the last
> combination in each tuple is not enclosed in a nested tuple:
>
> In [2]: x= multino
On Sat, Sep 24, 2011 at 12:06 AM, Dr. Phillip M. Feldman
wrote:
>
> I wrote a small generator function that produces multinomial combinations.
> (Python's itertools module does ordinary combinations, but not multinomial
> combinations). The code essentially works, except
I wrote a small generator function that produces multinomial combinations.
(Python's itertools module does ordinary combinations, but not multinomial
combinations). The code essentially works, except that the the last
combination in each tuple is not enclosed in a nested tuple:
In [