cc.redberry.core.transformations
Class TransformationCollection
- java.lang.Object
-
- cc.redberry.core.transformations.TransformationCollection
-
- All Implemented Interfaces:
- Transformation
public final class TransformationCollection extends java.lang.Object implements Transformation
Collection of transformation. The transformations in this collection will be applied sequentially.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.redberry.core.transformations.Transformation
Transformation.Util
-
-
Field Summary
-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description TransformationCollection(java.util.Collection<Transformation> transformations)Constructs transformation from a given collection of transformations.TransformationCollection(Transformation... transformations)Constructs transformation from a given array of transformations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Transformation>getTransformations()Returns a list of transformations.java.lang.StringtoString()Tensortransform(Tensor t)Transforms specified tensor and returns the result.
-
-
-
Constructor Detail
-
TransformationCollection
public TransformationCollection(java.util.Collection<Transformation> transformations)
Constructs transformation from a given collection of transformations.- Parameters:
transformations- collection of transformations
-
TransformationCollection
public TransformationCollection(Transformation... transformations)
Constructs transformation from a given array of transformations.- Parameters:
transformations- array of transformations
-
-
Method Detail
-
transform
public Tensor transform(Tensor t)
Description copied from interface:TransformationTransforms specified tensor and returns the result.- Specified by:
transformin interfaceTransformation- Parameters:
t- tensor- Returns:
- transformed tensor
-
getTransformations
public java.util.List<Transformation> getTransformations()
Returns a list of transformations.- Returns:
- a list of transformations
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG