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
37e802de
Commit
37e802de
authored
Mar 23, 2018
by
Martin Reinecke
Browse files
temporary renaming to make things less confusing
parent
83c74e7b
Pipeline
#26415
passed with stage
in 5 minutes and 47 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/library/nonlinear_power_energy.py
View file @
37e802de
...
...
@@ -70,7 +70,7 @@ class NonlinearPowerEnergy(Energy):
if
samples
is
None
or
samples
==
0
:
xi_sample_list
=
[
xi
]
else
:
xi_sample_list
=
[
D
.
draw_sample
()
+
xi
xi_sample_list
=
[
D
.
draw_
inverse_
sample
()
+
xi
for
_
in
range
(
samples
)]
self
.
xi_sample_list
=
xi_sample_list
self
.
inverter
=
inverter
...
...
nifty4/library/wiener_filter_curvature.py
View file @
37e802de
...
...
@@ -60,7 +60,7 @@ class WienerFilterCurvature(EndomorphicOperator):
def
apply
(
self
,
x
,
mode
):
return
self
.
_op
.
apply
(
x
,
mode
)
def
draw_sample
(
self
,
dtype
=
np
.
float64
):
def
draw_
inverse_
sample
(
self
,
dtype
=
np
.
float64
):
n
=
self
.
N
.
draw_sample
(
dtype
)
s
=
self
.
S
.
draw_sample
(
dtype
)
...
...
nifty4/probing/utils.py
View file @
37e802de
...
...
@@ -51,7 +51,7 @@ class StatCalculator(object):
def
probe_with_posterior_samples
(
op
,
post_op
,
nprobes
):
sc
=
StatCalculator
()
for
i
in
range
(
nprobes
):
sample
=
post_op
(
op
.
draw_sample
())
sample
=
post_op
(
op
.
draw_
inverse_
sample
())
sc
.
add
(
sample
)
if
nprobes
==
1
:
...
...
test/test_energies/test_noise.py
View file @
37e802de
...
...
@@ -84,7 +84,7 @@ class Noise_Energy_Tests(unittest.TestCase):
S
=
S
,
inverter
=
inverter
).
curvature
res_sample_list
=
[
d
-
R
(
f
(
ht
(
C
.
draw_sample
()
+
xi
)))
res_sample_list
=
[
d
-
R
(
f
(
ht
(
C
.
draw_
inverse_
sample
()
+
xi
)))
for
_
in
range
(
10
)]
energy0
=
ift
.
library
.
NoiseEnergy
(
eta0
,
alpha
,
q
,
res_sample_list
)
...
...
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