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
835b4730
Commit
835b4730
authored
May 09, 2017
by
Pumpe, Daniel (dpumpe)
Browse files
Update wiener Filter harmonic
parent
fb558c45
Pipeline
#12207
passed with stage
in 4 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter_harmonic.py
View file @
835b4730
...
...
@@ -85,7 +85,7 @@ if __name__ == "__main__":
a_s
=
sigma_s
**
2.
*
lambda_s
*
total_volume
# creation of spaces
x1
=
RGSpace
(
npix
,
distances
=
total_volume
/
npix
,
x1
=
RGSpace
(
[
npix
,
npix
],
distances
=
total_volume
/
npix
,
zerocenter
=
False
)
k1
=
RGRGTransformation
.
get_codomain
(
x1
)
p1
=
PowerSpace
(
harmonic_domain
=
k1
,
log
=
False
)
...
...
@@ -104,7 +104,7 @@ if __name__ == "__main__":
# drawing a random field
sk
=
p_field
.
power_synthesize
(
real_signal
=
True
,
mean
=
0.
)
s
=
Fft_op
.
inverse
_times
(
sk
)
s
=
Fft_op
.
adjoint
_times
(
sk
)
signal_to_noise
=
1
N_op
=
DiagonalOperator
(
R_op
.
target
,
diagonal
=
s
.
var
()
/
signal_to_noise
,
bare
=
True
)
...
...
@@ -121,7 +121,7 @@ if __name__ == "__main__":
mk
=
D
(
j
)
m
=
Fft_op
.
inverse
_times
(
mk
)
m
=
Fft_op
.
adjoint
_times
(
mk
)
z
=
{}
z
[
"signal"
]
=
s
...
...
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