public abstract class Op2 extends Object
| Constructor and Description |
|---|
Op2() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
apply(double x,
double y) |
void |
applyTo(ADenseArrayVector a,
AVector b) |
void |
applyTo(AMatrix a,
AMatrix b) |
void |
applyTo(AScalar a,
AScalar b) |
void |
applyTo(AVector a,
AVector b) |
void |
applyTo(double[] data,
AVector b) |
void |
applyTo(double[] data,
double b) |
void |
applyTo(double[] data,
int start,
int length,
AVector b) |
void |
applyTo(double[] data,
int start,
int length,
double b) |
void |
applyTo(INDArray a,
INDArray b) |
double |
averageValue() |
void |
constrainValues(double[] src,
double[] dest,
int offset,
int length)
Creates a copy of the values of src in dest, constraining them to be within the valid
range of output values from this Op
|
Op2 |
getDerivative(int i)
Gets the derivative of this Op2 with respect to the specified parameter (0 or 1)
|
boolean |
isBounded() |
boolean |
isStochastic()
Returns true if the operator is stochastic, i.e returns random values for at least some inputs
|
double |
maxValue() |
double |
minValue() |
double |
reduce(double init,
double[] data,
int offset,
int length)
Method to reduce over a subset of a double[] array
|
double |
reduce(double init,
double[] data,
int offset,
int length,
int stride)
Method to reduce over a strided subset of a double[] array
|
double |
reduceZeros(double init,
long length)
Method to reduce over a sequence of zeros.
|
double |
reduceZeros(long length)
Method to reduce over a sequence of zeros.
|
String |
toString() |
boolean |
validateOutput(double[] output)
Validates whether all values in a double[] are within the possible output range for this Op
|
public abstract double apply(double x,
double y)
public void applyTo(ADenseArrayVector a, AVector b)
public void applyTo(double[] data,
int start,
int length,
AVector b)
public void applyTo(double[] data,
int start,
int length,
double b)
public void applyTo(double[] data,
AVector b)
public void applyTo(double[] data,
double b)
public boolean isStochastic()
public double averageValue()
public double minValue()
public double maxValue()
public boolean validateOutput(double[] output)
output - public void constrainValues(double[] src,
double[] dest,
int offset,
int length)
src - dest - offset - length - public boolean isBounded()
public double reduce(double init,
double[] data,
int offset,
int length)
public double reduce(double init,
double[] data,
int offset,
int length,
int stride)
public double reduceZeros(double init,
long length)
init - length - public double reduceZeros(long length)
length - public Op2 getDerivative(int i)
i - Copyright © 2016. All rights reserved.