From d3cdff9e8787152b2b3b416f4eb807efc230263b Mon Sep 17 00:00:00 2001 From: Lizhiyi Date: Tue, 2 Jul 2024 16:59:37 +0800 Subject: [PATCH] reverse the vegasmc adjustment --- src/vegas_mc/montecarlo.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vegas_mc/montecarlo.jl b/src/vegas_mc/montecarlo.jl index 9636dd1..1a203b7 100644 --- a/src/vegas_mc/montecarlo.jl +++ b/src/vegas_mc/montecarlo.jl @@ -222,11 +222,8 @@ 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, 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) + 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