Find types of arguments of a function's method

You are running into difficulties because this is an ill-defined problem: mostly, the vocabulary of Distributions.jl is not distributions, but functions that generate distributions (constructors). The distinction is important.

What you would need is either an API that allows you to query the space of valid arguments, or generates “some” valid instance of each distribution class. Neither exists, because it is a pretty rare use case.

What are you trying to accomplish?

1 Like