Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
2accbbe5
Commit
2accbbe5
authored
Jun 16, 2018
by
Torsten Ensslin
Browse files
added reference, reduced number of samples to 10 to speed up code by a factor of 100
parent
103fb0ba
Pipeline
#31112
passed with stages
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/poisson_demo.py
View file @
2accbbe5
# Program to generate figures of article "Information theory for fields"
# by Torsten Ensslin, Annalen der Physik, submitted to special edition
# "Physics of Information" in April 2018
# "Physics of Information" in April 2018, arXiv:1804.03350
# to get exact figure of paper comment out lines marked by "COMMENT OUT"
import
numpy
as
np
import
nifty4
as
ift
...
...
@@ -25,8 +26,9 @@ if __name__ == "__main__":
sigma_n
=
0.2
# noise level
sigma_n2
=
sigma_n
**
2
L
=
1.
# Total length of interval or volume the field lives on
nprobes
=
1000
# Number of probes for uncertainty quantification
nprobes
=
1000
# Number of probes for uncertainty quantification used in paper
nprobes
=
10
# COMMENT OUT TO REPRODUCE PAPER FIGURE EXACTLY
# Define resolution (pixels per dimension)
N_pixels
=
1024
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment