Class ResamplingStage<V,​C>

  • Type Parameters:
    V - the type of the values of the tensoric objects
    C - 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)
      Returns true if the tensoric object contains the given position, false otherwise.
      V get​(Position position)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 dimension
        dimension - the the dimension which is resampled by this stage
    • Method Detail

      • get

        public V get​(Position position)
        Specified by:
        get in interface Tensoric<V>
        Parameters:
        position - the position in the N-dimensional space where to find the value.
        Returns:
        the value at the given position
      • contains

        public boolean contains​(Position position)
        Description copied from interface: Tensoric
        Returns true if the tensoric object contains the given position, false otherwise.
        Specified by:
        contains in interface Tensoric<V>
        Parameters:
        position - the position to be checked
        Returns:
        true if the position is contained in the tensoric object, false otherwise.