Commit 2accbbe5 authored by Torsten Ensslin's avatar 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
# Program to generate figures of article "Information theory for fields" # Program to generate figures of article "Information theory for fields"
# by Torsten Ensslin, Annalen der Physik, submitted to special edition # 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 numpy as np
import nifty4 as ift import nifty4 as ift
...@@ -25,8 +26,9 @@ if __name__ == "__main__": ...@@ -25,8 +26,9 @@ if __name__ == "__main__":
sigma_n = 0.2 # noise level sigma_n = 0.2 # noise level
sigma_n2 = sigma_n**2 sigma_n2 = sigma_n**2
L = 1. # Total length of interval or volume the field lives on 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) # Define resolution (pixels per dimension)
N_pixels = 1024 N_pixels = 1024
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment