Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rand on ProductMeasure with different measures #42

Open
theogf opened this issue May 2, 2022 · 1 comment
Open

rand on ProductMeasure with different measures #42

theogf opened this issue May 2, 2022 · 1 comment

Comments

@theogf
Copy link
Collaborator

theogf commented May 2, 2022

The line

elT = typeof(rand(rng, T, first(mar)))

assumes that all samples will be of the same type as first(mar) which is not necessarily true if you combine different measures.

@theogf
Copy link
Collaborator Author

theogf commented May 2, 2022

My bad, it's actually because of the function on MeasureTheory which completely takes over...
This function in particular :
https://github.com/cscherrer/MeasureTheory.jl/blob/ab9645963e3fab66dede0499a1be062d178a4d9c/src/combinators/product.jl#L22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant