Skip to content
GitLab
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
922878ed
Commit
922878ed
authored
Jan 15, 2018
by
Martin Reinecke
Browse files
progress
parent
82e1c432
Pipeline
#23719
failed with stage
in 4 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter_via_curvature.py
View file @
922878ed
...
...
@@ -16,12 +16,13 @@ if __name__ == "__main__":
field_sigma
=
2.
*
nu
.
K
# smoothing length of response
response_sigma
=
0.01
*
nu
.
m
# The signal to noise ratio
# The signal to noise ratio
***CURRENTLY BROKEN***
signal_to_noise
=
70.7
# note that field_variance**2 = a*k_0/4. for this analytic form of power
# spectrum
def
power_spectrum
(
k
):
#RL FIXME: signal_amplitude is not how much signal varies
cldim
=
correlation_length
**
(
2
*
dimensionality
)
a
=
4
/
(
2
*
np
.
pi
)
*
cldim
*
field_sigma
**
2
# to be integrated over spherical shells later on
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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