bmcfee/muda

Refactor iterator api

bmcfee opened this issue · 0 comments

Stochastic iterators can be more simply designed with multiple inheritance.

A special state information function can be abstracted out, and all transformers (iterable or not) can be rewritten to access parameters through the state object. This way, sampling and transformation become separate.

This might even make more sense as a context manager.