You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My MWE is below, using the same mu product measure object that was created in my erroring code, and using the same rng with the Xoshiro prng generator as was in the code (I suppose it is the default argument when using the rand method on the Chain object). Interestingly when calling rand on the product measure object without specifying the rng it works fine. The error is a method error from deep within the random number generation.
using Random
using MeasureTheory
rng =ResettableRNG(Random.Xoshiro(), 6542022242862247233)
mu =ProductMeasure([Binomial(n =990, p =0.00995017), Binomial(n =10, p =0.0246901)])
rand(rng, mu)
rand(mu)
The error is:
ERROR: MethodError: no method matching rng_native_52(::ResettableRNG{Xoshiro, UInt64})
Here's my Julia info, and I'm on MeasureTheory v0.18.1. Thanks!
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.5.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
Threads: 1 on 4 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =
The text was updated successfully, but these errors were encountered:
I noticed this issue JuliaMath/MeasureBase.jl#34 but the Binomial objects in the product measure here are definitely the ones from MeasureTheory.jl, rather than Distributions.jl
Hi, I encountered a strange problem when sampling from a product measure. My actual error occurred in the context of making a Markov chain, specifically from this line https://github.com/cscherrer/MeasureTheory.jl/blob/50d90d7aa42f60324a7fb9ba9dc45d4e2cac9d8e/src/combinators/chain.jl#L44
My MWE is below, using the same
mu
product measure object that was created in my erroring code, and using the samerng
with the Xoshiro prng generator as was in the code (I suppose it is the default argument when using therand
method on theChain
object). Interestingly when callingrand
on the product measure object without specifying therng
it works fine. The error is a method error from deep within the random number generation.The error is:
Here's my Julia info, and I'm on
MeasureTheory v0.18.1
. Thanks!The text was updated successfully, but these errors were encountered: