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
743b9fd4
Commit
743b9fd4
authored
Jun 29, 2020
by
Philipp Arras
Browse files
Fix warning in doc generation
parent
5722ad9b
Pipeline
#77459
passed with stages
in 13 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/operators/normal_operators.py
View file @
743b9fd4
...
...
@@ -16,22 +16,22 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import
numpy
as
np
from
..domain_tuple
import
DomainTuple
from
..domains.unstructured_domain
import
UnstructuredDomain
from
..operators.operator
import
Operator
from
..operators.adder
import
Adder
from
..operators.simple_linear_operators
import
ducktape
from
..operators.diagonal_operator
import
DiagonalOperator
from
..operators.simple_linear_operators
import
ducktape
from
..sugar
import
makeField
from
..utilities
import
value_reshaper
,
lognormal_moments
from
..utilities
import
lognormal_moments
,
value_reshaper
def
NormalTransform
(
mean
,
sigma
,
key
,
N_copies
=
0
):
"""Opchain that transforms standard normally distributed values to
normally distributed values with given mean an standard deviation.
Parameters
:
----------
-
Parameters
----------
mean : float
Mean of the field
sigma : float
...
...
@@ -60,8 +60,8 @@ def LognormalTransform(mean, sigma, key, N_copies):
"""Opchain that transforms standard normally distributed values to
log-normally distributed values with given mean an standard deviation.
Parameters
:
----------
-
Parameters
----------
mean : float
Mean of the field
sigma : float
...
...
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