Skip to content

Commit

Permalink
modify the measure function for vegas
Browse files Browse the repository at this point in the history
  • Loading branch information
peter0627ustc committed Mar 15, 2024
1 parent dc0d46e commit 67fcd88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vegas_mc/montecarlo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,11 @@ function montecarlo(config::Configuration{N,V,P,O,T}, integrand::Function, neval
end
if isnothing(measure) == false
(fieldcount(V) == 1) ?
measure(config.var[1], config.observable, relativeWeights, config) :
measure(config.var, config.observable, relativeWeights, config)
measure(config.var[1], config.observable, weights, relativeWeights, config) :
measure(config.var, config.observable, weights, relativeWeights, config)
# (fieldcount(V) == 1) ?
# measure(config.var[1], config.observable, relativeWeights, config) :
# measure(config.var, config.observable, relativeWeights, config)
end

config.normalization += 1.0 * padding_probability[config.norm] / probability
Expand Down

0 comments on commit 67fcd88

Please sign in to comment.