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
bbdef882
Commit
bbdef882
authored
Feb 06, 2018
by
Martin Reinecke
Browse files
compactify
parent
6fc84116
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/library/wiener_filter_curvature.py
View file @
bbdef882
...
...
@@ -60,11 +60,11 @@ class WienerFilterCurvature(EndomorphicOperator):
return
self
.
_op
.
apply
(
x
,
mode
)
def
draw_sample
(
self
):
mock_signal
=
self
.
S
.
draw_sample
()
mock_noise
=
self
.
N
.
draw_sample
()
n
=
self
.
N
.
draw_sample
()
s
=
self
.
S
.
draw_sample
()
mock_data
=
self
.
R
(
mock_signal
)
+
mock_noise
d
=
self
.
R
(
s
)
+
n
mock_
j
=
self
.
R
.
adjoint_times
(
self
.
N
.
inverse_times
(
mock_data
))
mock_
m
=
self
.
inverse_times
(
mock_
j
)
return
mock_signal
-
mock_
m
j
=
self
.
R
.
adjoint_times
(
self
.
N
.
inverse_times
(
d
))
m
=
self
.
inverse_times
(
j
)
return
s
-
m
Write
Preview
Markdown
is supported
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