org.nd4j.linalg.ops.reduceops.scalarops
Class Variance
- java.lang.Object
-
- org.nd4j.linalg.ops.reduceops.scalarops.BaseScalarOp
-
- org.nd4j.linalg.ops.reduceops.scalarops.Variance
-
public class Variance extends BaseScalarOp
Return the variance of an ndarray
-
-
Constructor Summary
Constructors Constructor and Description Variance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleaccumulate(INDArray arr, int i, double soFar)java.lang.Doubleapply(INDArray input)Returns the result of applying this function toinput.doublevar(INDArray arr)Variance (see: apache commons)
-
-
-
Method Detail
-
var
public double var(INDArray arr)
Variance (see: apache commons)- Parameters:
arr- the ndarray to getDouble the variance of- Returns:
- the variance for this ndarray
-
apply
public java.lang.Double apply(INDArray input)
Description copied from interface:FunctionReturns the result of applying this function toinput. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal(a, b)implies thatObjects.equal(function.apply(a), function.apply(b)).
- Specified by:
applyin interfaceFunction<INDArray,java.lang.Double>- Overrides:
applyin classBaseScalarOp
-
accumulate
public double accumulate(INDArray arr, int i, double soFar)
- Specified by:
accumulatein classBaseScalarOp
-
-
DMelt 3.0 © DataMelt by jWork.ORG