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

ERROR: ArgumentError: Uniform: the condition a < b is not satisfied. #18

Open
PharmCat opened this issue Sep 3, 2023 · 0 comments
Open

Comments

@PharmCat
Copy link

PharmCat commented Sep 3, 2023

Is it my fault or issue?

L = UpperTriangular(rand(100, 100))
v = L*L'
m = zeros(100)
dist = MvNormal(m, v)
# need try one more time if error

vegas(x -> pdf(dist, x), zeros(100), ones(100))
ERROR: ArgumentError: Uniform: the condition a < b is not satisfied.
Stacktrace:
 [1] #449
   @ C:\Users\q\.julia\packages\Distributions\Ufrz2\src\univariate\continuous\uniform.jl:33 [inlined]
 [2] check_args
   @ C:\Users\q\.julia\packages\Distributions\Ufrz2\src\utils.jl:89 [inlined]
 [3] #Uniform#448
   @ C:\Users\q\.julia\packages\Distributions\Ufrz2\src\univariate\continuous\uniform.jl:33 [inlined]
 [4] #Uniform#451
   @ C:\Users\q\.julia\packages\Distributions\Ufrz2\src\univariate\continuous\uniform.jl:37 [inlined]
 [5] Uniform
   @ C:\Users\q\.julia\packages\Distributions\Ufrz2\src\univariate\continuous\uniform.jl:37 [inlined]
 [6] generate_pts(grid::Matrix{Float64}, cgrid::Matrix{Float64}, M::Int64, a::Vector{Float64}, b::Vector{Float64})
   @ MonteCarloIntegration C:\Users\q\.julia\packages\MonteCarloIntegration\3YHLH\src\vegas.jl:221
 [7] vegas(func::var"#13#14", a::Vector{Float64}, b::Vector{Float64}; maxiter::Int64, nbins::Int64, ncalls::Int64, rtol::Float64, atol::Float64, debug::Bool, batch::Bool)  
   @ MonteCarloIntegration C:\Users\q\.julia\packages\MonteCarloIntegration\3YHLH\src\vegas.jl:92
 [8] vegas(func::Function, a::Vector{Float64}, b::Vector{Float64})
   @ MonteCarloIntegration C:\Users\q\.julia\packages\MonteCarloIntegration\3YHLH\src\vegas.jl:54
 [9] top-level scope
   @ g:\Cloud\Julia\!justtest.jl:734

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