public class StandardDeviation extends Variance
bias, biasCorrected, mean
applyFinalTransform, finalResult, finalResultComplex
extraArgs, n, numProcessed, passThrough, x, y, z
Constructor and Description |
---|
StandardDeviation() |
StandardDeviation(INDArray x) |
StandardDeviation(INDArray x,
boolean biasCorrected) |
StandardDeviation(INDArray x,
INDArray y) |
StandardDeviation(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) |
void |
exec()
Execute the op if its pass through (not needed most of the time)
|
void |
exec(int... dimension)
Exec along each dimension
|
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
|
Variance |
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
|
combineSubResults, combineSubResults, combineSubResults, init, isBiasCorrected, isPassThrough, noOp, op, op, setBiasCorrected, update, update, update, update, update, update, update, update, update
applyFinalTransform, currentResult, getFinalResult, getFinalResultComplex, numProcessed, op, op, op, op, op, op, setApplyFinalTransform, setFinalResult, setFinalResultComplex, zeroComplex, zeroDouble, zeroFloat
extraArgs, extraArgsBuff, extraArgsDataBuff, getOpType, isExecSpecial, n, setN, setX, setY, setZ, toString, x, y, z
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
extraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, n, setN, setX, setY, setZ, x, y, z
public StandardDeviation(INDArray x, boolean biasCorrected)
public StandardDeviation()
public StandardDeviation(INDArray x)
public int opNum()
Op
public Op opForDimension(int index, int dimension)
Op
opForDimension
in interface Op
opForDimension
in class Variance
index
- the index of the op to iterate overdimension
- the dimension to ge the input forpublic Variance opForDimension(int index, int... dimension)
Op
opForDimension
in interface Op
opForDimension
in class Variance
index
- the index of the op to iterate overdimension
- the dimension to ge the input forpublic void exec()
Op
public void exec(int... dimension)
Op
public double getAndSetFinalResult(double accum)
Accumulation
getAndSetFinalResult
in interface Accumulation
getAndSetFinalResult
in class Variance
accum
- The accumulated resultpublic float getAndSetFinalResult(float accum)
getAndSetFinalResult
in interface Accumulation
getAndSetFinalResult
in class Variance
Accumulation.getAndSetFinalResult(double)
public IComplexNumber getAndSetFinalResult(IComplexNumber accum)
Accumulation
getAndSetFinalResult
in interface Accumulation
getAndSetFinalResult
in class Variance
Accumulation.getAndSetFinalResult(double)
public double calculateFinalResult(double accum, long n)
Accumulation
Accumulation.getAndSetFinalResult(double)
, the result is
merely calculated and returned, not stored in the Accumulation op itself.calculateFinalResult
in interface Accumulation
calculateFinalResult
in class Variance
accum
- The accumulated resultn
- the number of elements accumulatedpublic float calculateFinalResult(float accum, long n)
calculateFinalResult
in interface Accumulation
calculateFinalResult
in class Variance
#calculateFinalResult(double, int)
Copyright © 2016. All Rights Reserved.