mirror of
https://github.com/vale981/bachelor_thesis
synced 2025-03-06 01:51:38 -05:00
use correct maximum
This commit is contained in:
parent
3ee91042f7
commit
9708307816
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ def integrate_vegas_nd(
|
||||||
cube_samples[i].var() * (vol ** 2) / (total_points_per_cube - 1)
|
cube_samples[i].var() * (vol ** 2) / (total_points_per_cube - 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
local_maximum = points.max()
|
local_maximum = points.max() * num_cubes
|
||||||
if not maximum or local_maximum > maximum:
|
if not maximum or local_maximum > maximum:
|
||||||
maximum = local_maximum
|
maximum = local_maximum
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue