Skip to content
GitLab
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
6e043763
Commit
6e043763
authored
Nov 18, 2017
by
Martin Reinecke
Browse files
cosmetics
parent
e6de9466
Pipeline
#21875
passed with stage
in 4 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/library/critical_power_energy.py
View file @
6e043763
...
...
@@ -116,9 +116,8 @@ class CriticalPowerEnergy(Energy):
w
=
Field
.
zeros
(
self
.
position
.
domain
,
dtype
=
self
.
m
.
dtype
)
for
i
in
range
(
self
.
samples
):
# self.logger.info("Drawing sample %i" % i)
posterior_sample
=
generate_posterior_sample
(
self
.
m
,
self
.
D
)
w
+=
self
.
P
(
abs
(
posterior_sample
)
**
2
)
sample
=
generate_posterior_sample
(
self
.
m
,
self
.
D
)
w
+=
self
.
P
(
abs
(
sample
)
**
2
)
w
*=
1.
/
self
.
samples
else
:
...
...
nifty/sugar.py
View file @
6e043763
...
...
@@ -289,7 +289,6 @@ def generate_posterior_sample(mean, covariance):
-------
sample : Field
Returns the a sample from the Gaussian of given mean and covariance.
"""
S
=
covariance
.
op
.
S
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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