Commit ecd52ca8 authored by Julian Ruestig's avatar Julian Ruestig 📡
Browse files

Input of SlopeOperator commentary

parent 808c3fc8
......@@ -29,6 +29,23 @@ from .linear_operator import LinearOperator
class SlopeOperator(LinearOperator):
Creates a slope on target.
This operator creates a field on a LogRGSpace, which is created
according to a slope of given entries, (mean, y-intercept).
The slope mean is the powerlaw of the field in normal-space.
domain : domain or DomainTuple, shape=(2,)
It has to be and UnstructuredDomain.
The domain of the slope mean and the y-intercept mean.
target : domain or DomainTuple
The output domain has to a LogRGSpace
sigmas : np.array, shape=(2,)
The slope variance and the y-intercept variance.
def __init__(self, domain, target, sigmas):
if not isinstance(target, LogRGSpace):
raise TypeError
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment