Skip to content

Commit

Permalink
qmcpy v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alegresor committed Oct 6, 2021
1 parent 9109f5b commit 15ec4a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ We may choose a Sobol' discrete distribution with a corresponding Sobol' cubatur
import qmcpy as qp
from numpy import pi, cos, sqrt, linalg
d = 2
sobol = qp.Sobol(d)
gauss_sobol = qp.Gaussian(sobol, mean=0, covariance=1/2)
dnb2 = qp.DigitalNetB2(d)
gauss_sobol = qp.Gaussian(dnb2, mean=0, covariance=1/2)
k = qp.CustomFun(
true_measure = gauss_sobol,
g = lambda x: pi**(d/2)*cos(linalg.norm(x,axis=1)))
Expand All @@ -62,9 +62,9 @@ Running the above code outputs
```
LDTransformData (AccumulateData Object)
solution 1.808
error_bound 7.96e-04
n_total 2^(12)
time_integrate 0.006
error_bound 4.68e-04
n_total 2^(13)
time_integrate 0.008
CubQMCSobolG (StoppingCriterion Object)
abs_tol 0.001
rel_tol 0
Expand All @@ -80,7 +80,7 @@ Sobol (DiscreteDistribution Object)
dvec [0 1]
randomize LMS_DS
graycode 0
entropy 31478015904463279523976608227420809332
entropy 127071403717453177593768120720330942628
spawn_key ()
```

Expand Down
2 changes: 1 addition & 1 deletion requirements/dev_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tornado==6.1.0
tqdm==4.46.1
traitlets==4.3.3
twine==3.1.1
typing-extensions==3.7.4.3
typing-extensions==3.10.0
urllib3==1.26.5
wcwidth==0.1.9
webencodings==0.5.1
Expand Down

0 comments on commit 15ec4a0

Please sign in to comment.