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
4b7a513a
Commit
4b7a513a
authored
Jan 31, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
8987bcff
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/adjust_variances.py
View file @
4b7a513a
...
...
@@ -85,13 +85,13 @@ def do_adjust_variances(position,
xi_key
=
'xi'
,
samples
=
[]):
"""Adjusts the variance of xi_key to be represented by amplitude_operator.
Solves a constant likelihood optimization of the
form phi = amplitude_operator * position[xi_key] under the constraint that
phi remains constant.
The field indexed by xi_key is desired to be a Gaussian white Field,
thus variations that are more easily represented by amplitude_operator
The field indexed by xi_key is desired to be a Gaussian white Field,
thus variations that are more easily represented by amplitude_operator
will be absorbed in amplitude_operator.
Parameters
...
...
@@ -116,7 +116,6 @@ def do_adjust_variances(position,
The new position after variances were adjusted.
"""
h_space
=
position
[
xi_key
].
domain
[
0
]
pd
=
PowerDistributor
(
h_space
,
amplitude_operator
.
target
[
0
])
a
=
pd
(
amplitude_operator
)
...
...
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