mikera.vectorz.ops
Class GaussianNoise
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.GaussianNoise
-
-
Field Summary
Fields Modifier and Type Field and Description static GaussianNoiseUNIT_NOISE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double x)Applies this operator to a single value, returning the resultvoidapplyTo(double[] data, int start, int length)Applies this operator to the specified range within a double[] array.doubleaverageValue()static GaussianNoisecreate(double stdDev)doublederivative(double x)Returns the derivative of this Op for a given input value x i.e.doublederivativeForOutput(double y)Returns the derivative of this Op for a given output value y i.e.OpgetDerivativeOp()Gets an operator which represents the derivative of this operator.booleanhasDerivative()Returns true if this operator supports computing the derivative for a given inputbooleanisStochastic()Returns true if the operator is stochastic, i.e returns random values for at least some inputs-
Methods inherited from class mikera.vectorz.Op
applyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getInverse, getTransform, hasDerivativeForOutput, hasInverse, isBounded, isDomainBounded, maxDomain, maxValue, minDomain, minValue, product, sum, toString, validateOutput
-
-
-
-
Field Detail
-
UNIT_NOISE
public static final GaussianNoise UNIT_NOISE
-
-
Method Detail
-
create
public static GaussianNoise create(double stdDev)
-
isStochastic
public boolean isStochastic()
Description copied from class:OpReturns true if the operator is stochastic, i.e returns random values for at least some inputs- Overrides:
isStochasticin classOp- Returns:
-
apply
public double apply(double x)
Description copied from interface:IOperatorApplies this operator to a single value, returning the result
-
applyTo
public void applyTo(double[] data, int start, int length)Description copied from interface:IOperatorApplies this operator to the specified range within a double[] array.
-
hasDerivative
public boolean hasDerivative()
Description copied from class:OpReturns true if this operator supports computing the derivative for a given input- Overrides:
hasDerivativein classOp- Returns:
-
derivative
public double derivative(double x)
Description copied from class:OpReturns the derivative of this Op for a given input value x i.e. f'(x) where f is the operator- Overrides:
derivativein classOp- Returns:
-
derivativeForOutput
public double derivativeForOutput(double y)
Description copied from class:OpReturns the derivative of this Op for a given output value y i.e. f'(g(y)) where f is the operator, g is the inverse of f- Overrides:
derivativeForOutputin classOp- Returns:
-
getDerivativeOp
public Op getDerivativeOp()
Description copied from class:OpGets an operator which represents the derivative of this operator. Returns nil if this cannot be computed or does not exist.- Overrides:
getDerivativeOpin classOp- Returns:
-
averageValue
public double averageValue()
- Overrides:
averageValuein classOp
-
-
DMelt 3.0 © DataMelt by jWork.ORG