Class ResamplingStage<V,C>
- java.lang.Object
-
- org.tensorics.core.tensor.resample.ResamplingStage<V,C>
-
- Type Parameters:
V
- the type of the values of the tensoric objectsC
- the type of the coordinates to resample
- All Implemented Interfaces:
Tensoric<V>
public class ResamplingStage<V,C> extends java.lang.Object implements Tensoric<V>
A tensoric object, which is created by applying one resampler on a certain dimension onto a previous tensoric object, which e.g. by itself can be a resampled one or a tensor.
-
-
Constructor Summary
Constructors Constructor Description ResamplingStage(Shape supportingShape, Tensoric<V> previousStage, SingleDimensionResampler<C,V> resampler, java.lang.Class<C> dimension)
Constructs a new resampling stage, derived from a previous stage by using a resampler and a dimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Position position)
Returnstrue
if the tensoric object contains the given position,false
otherwise.V
get(Position position)
-
-
-
Constructor Detail
-
ResamplingStage
public ResamplingStage(Shape supportingShape, Tensoric<V> previousStage, SingleDimensionResampler<C,V> resampler, java.lang.Class<C> dimension)
Constructs a new resampling stage, derived from a previous stage by using a resampler and a dimension.- Parameters:
supportingShape
- the shape of the original tensor. This is passed on through all the stages, as the supporting points have to be extracted from it during each stage.previousStage
- the stage, representing the previous resampling (or the original tensor)resampler
- the resampler to use for the given dimensiondimension
- the the dimension which is resampled by this stage
-
-