Class SliceInformation

java.lang.Object
org.eclipse.dawnsci.analysis.dataset.slicer.SliceInformation

public class SliceInformation extends Object
  • Constructor Details

    • SliceInformation

      public SliceInformation(org.eclipse.january.dataset.SliceND current, org.eclipse.january.dataset.SliceND output, org.eclipse.january.dataset.SliceND sampling, int[] dataDimensions, int total, int number)
      Object to store the information about where a slice is from in a lazy dataset
      Parameters:
      current - - slice describing where this data comes from in the original dataset
      output - - slice describing where this data goes in the output dataset
      sampling - - slice describing how original data is subsampled for iteration
      dataDimensions - - dimensions which correspond to the data (as opposed to the stack or scan)
      total - - total number of slices that can be taken (can be negative to indicate total is unknown)
      number - - which number this slice corresponds to (must be less than total, if total is non-negative)
  • Method Details

    • getSliceFromInput

      public org.eclipse.january.dataset.Slice[] getSliceFromInput()
    • getSliceInOutput

      public org.eclipse.january.dataset.Slice[] getSliceInOutput()
    • getSliceNumber

      public int getSliceNumber()
    • isFirstSlice

      public boolean isFirstSlice()
    • isLastSlice

      public boolean isLastSlice()
    • getSubSampledShape

      public int[] getSubSampledShape()
    • getSubSampling

      public org.eclipse.january.dataset.Slice[] getSubSampling()
    • getOriginalShape

      public int[] getOriginalShape()
      Returns:
      shape of original dataset
    • clone

      public SliceInformation clone()
      Overrides:
      clone in class Object
    • getTotalSlices

      public int getTotalSlices()
      Returns:
      total number of slices. Can be negative to indicate this is not known
    • getDataDimensions

      public int[] getDataDimensions()
    • isDataDimension

      public boolean isDataDimension(int dim)
    • reducedDimensionToSingular

      public void reducedDimensionToSingular(int dim)
    • convertSliceDimensionToFull

      public void convertSliceDimensionToFull(int dim)
    • reducedDimension

      public void reducedDimension(int dim, int size, int current)
    • getInputSliceWithoutDataDimensions

      public org.eclipse.january.dataset.SliceND getInputSliceWithoutDataDimensions()
    • removeDimensionsFromInputSlice

      public org.eclipse.january.dataset.SliceND removeDimensionsFromInputSlice(int[] dims)
    • calculateFastestDimension

      public int calculateFastestDimension()