mcerp icon indicating copy to clipboard operation
mcerp copied to clipboard

Support for multivariate distributions

Open dnclrhs opened this issue 3 years ago • 1 comments

Not sure if I misunderstand something. Appears that UncertainFunction is unable to handle multivariate distributions.

Tried running

x = uv(scipy.stats.multinomial(n=1,p=[p1,p2,p3]))

and got the error

AssertionError: Input must be a  distribution from the scipy.stats module.

Which it clearly is. Any idea?

dnclrhs avatar Feb 16 '22 22:02 dnclrhs

I notice

assert hasattr(
            rv, "dist"
        ), "Input must be a  distribution from the scipy.stats module."
        self.rv = rv

in mcerp, but the multinomial distribution of scipy has a _dist attribute, not a dist

dnclrhs avatar Feb 16 '22 22:02 dnclrhs