Distributions.jl icon indicating copy to clipboard operation
Distributions.jl copied to clipboard

`mgf` does not take `Complex` numbers

Open theogf opened this issue 3 years ago • 1 comments

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?

theogf avatar Feb 02 '22 11:02 theogf

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).

devmotion avatar Feb 02 '22 14:02 devmotion