Distributions.jl
Distributions.jl copied to clipboard
`mgf` does not take `Complex` numbers
The moment generating function is technically homomorphic in the complex space therefore restricting the input to be real does not make sense.
Would a PR doing t::Real -> t::Number bet accepted?
Sure. I guess the same could be done for (some) characteristic functions as well (https://en.wikipedia.org/wiki/Characteristic_function_(probability_theory)#Entire_characteristic_functions).