public class Mean extends Sum
applyFinalTransform, finalResult, finalResultComplexextraArgs, n, numProcessed, passThrough, x, y, z| Constructor and Description |
|---|
Mean() |
Mean(INDArray x) |
Mean(INDArray x,
INDArray y) |
Mean(INDArray x,
INDArray y,
INDArray z,
long n) |
Mean(INDArray x,
INDArray y,
long n) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateFinalResult(double accum,
long n)
Calculate the final result.
|
float |
calculateFinalResult(float accum,
long n) |
double |
getAndSetFinalResult(double accum)
Get and set the final result.
The final result is also stored in the Accumulation op itself (and can be retrieved by getFinalResult()) In some Accumulation operations, a final operation must be done on the accumulated result. |
float |
getAndSetFinalResult(float accum) |
IComplexNumber |
getAndSetFinalResult(IComplexNumber accum)
Complex version of getAndSetFinalResult().
|
String |
name()
The name of this operation
|
Op |
opForDimension(int index,
int... dimension)
A copy of this operation for a particular dimension of the input
|
Op |
opForDimension(int index,
int dimension)
A copy of this operation for a particular dimension of the input
|
int |
opNum()
An op number
|
op, op, op, op, update, update, update, update, update, update, update, update, updateapplyFinalTransform, combineSubResults, combineSubResults, combineSubResults, currentResult, getFinalResult, getFinalResultComplex, init, noOp, numProcessed, op, op, op, op, setApplyFinalTransform, setFinalResult, setFinalResultComplex, setZ, zeroComplex, zeroDouble, zeroFloatexec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, isPassThrough, n, setN, setX, setY, toString, x, y, zclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, isPassThrough, n, setN, setX, setY, x, y, zpublic Mean()
public Mean(INDArray x)
public int opNum()
Oppublic Op opForDimension(int index, int dimension)
OpopForDimension in interface OpopForDimension in class Sumindex - the index of the op to iterate overdimension - the dimension to ge the input forpublic Op opForDimension(int index, int... dimension)
OpopForDimension in interface OpopForDimension in class Sumindex - the index of the op to iterate overdimension - the dimension to ge the input forpublic double getAndSetFinalResult(double accum)
AccumulationgetAndSetFinalResult in interface AccumulationgetAndSetFinalResult in class BaseAccumulationaccum - The accumulated resultpublic float getAndSetFinalResult(float accum)
getAndSetFinalResult in interface AccumulationgetAndSetFinalResult in class BaseAccumulationAccumulation.getAndSetFinalResult(double)public double calculateFinalResult(double accum,
long n)
AccumulationAccumulation.getAndSetFinalResult(double), the result is
merely calculated and returned, not stored in the Accumulation op itself.calculateFinalResult in interface AccumulationcalculateFinalResult in class BaseAccumulationaccum - The accumulated resultn - the number of elements accumulatedpublic float calculateFinalResult(float accum,
long n)
calculateFinalResult in interface AccumulationcalculateFinalResult in class BaseAccumulation#calculateFinalResult(double, int)public IComplexNumber getAndSetFinalResult(IComplexNumber accum)
AccumulationgetAndSetFinalResult in interface AccumulationgetAndSetFinalResult in class BaseAccumulationAccumulation.getAndSetFinalResult(double)Copyright © 2016. All Rights Reserved.