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
8c8530ce
Commit
8c8530ce
authored
Jun 29, 2020
by
Philipp Arras
Browse files
Merge branch 'doc_fixups' into 'NIFTy_7'
Fix warning in doc generation See merge request
!554
parents
5722ad9b
743b9fd4
Pipeline
#77504
passed with stages
in 25 minutes and 59 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/operators/normal_operators.py
View file @
8c8530ce
...
...
@@ -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