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
810b5985
Commit
810b5985
authored
Jan 14, 2019
by
Philipp Arras
Browse files
Cosmetics
parent
8371ad47
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/smooth_linear_amplitude.py
View file @
810b5985
...
...
@@ -139,13 +139,13 @@ def SLAmplitude(target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']):
# Linear component
phi_mean
=
np
.
array
([
sm
,
im
+
sm
*
dom
.
t_0
[
0
]])
phi_sig
=
np
.
array
([
sv
,
iv
])
slope
=
SlopeOperator
(
dom
)
phi_
mean
=
Field
.
from_global_data
(
slope
.
domain
,
phi_
mean
)
phi_sig
=
Field
.
from_global_data
(
slope
.
domain
,
phi_sig
)
linear
=
slope
(
OffsetOperator
(
phi_mean
)(
makeOp
(
phi_sig
)))
.
ducktape
(
keys
[
1
])
phi_mean
=
Field
.
from_global_data
(
dom
,
phi_mean
)
phi_
sig
=
Field
.
from_global_data
(
dom
,
phi_
sig
)
linear
=
SlopeOperator
(
dom
)
@
OffsetOperator
(
phi_mean
)
@
makeOp
(
phi_sig
)
linear
=
linear
.
ducktape
(
keys
[
1
])
# Combine linear and smooth component
loglog_ampl
=
0.5
*
(
smooth
+
linear
)
# Go from loglog-space to linear-linear-space
return
et
(
loglog_ampl
.
exp
()
)
return
et
@
loglog_ampl
.
exp
()
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