org.nd4j.linalg.distancefunction
Class EuclideanDistance
- java.lang.Object
-
- org.nd4j.linalg.distancefunction.BaseDistanceFunction
-
- org.nd4j.linalg.distancefunction.EuclideanDistance
-
- All Implemented Interfaces:
- Function<INDArray,java.lang.Float>, java.io.Serializable, DistanceFunction
public class EuclideanDistance extends BaseDistanceFunction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description EuclideanDistance(INDArray base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Floatapply(INDArray input)Returns the result of applying this function toinput.
-
-
-
Constructor Detail
-
EuclideanDistance
public EuclideanDistance(INDArray base)
-
-
Method Detail
-
apply
public java.lang.Float 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)).
-
-
DMelt 3.0 © DataMelt by jWork.ORG