Interface IDownsampleService

All Known Implementing Classes:
Downsample

public interface IDownsampleService
Service for downsampling data.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends org.eclipse.january.dataset.IDataset>
    downsample(String enc, org.eclipse.january.dataset.IDataset... data)
    Downsample As in Downsample.fromString(...) In DAWN source code the implementation of this service is:
    List<? extends org.eclipse.january.dataset.IDataset>
    downsample(DownsampleMode mode, int[] binShape, org.eclipse.january.dataset.IDataset... data)
    Same as the downsample with a string argument but instead of encoding the types in the string, they are provided directly.
  • Method Details

    • downsample

      List<? extends org.eclipse.january.dataset.IDataset> downsample(String enc, org.eclipse.january.dataset.IDataset... data) throws Exception
      Downsample As in Downsample.fromString(...) In DAWN source code the implementation of this service is:
      Parameters:
      enc - : examples: 'MEAN:2', 'MEAN:2x3', 'MAXIMUM:2x2', 'MINIMUM:4x4', 'POINT:2x3x4'
      data - - the datasets to downsample
      Throws:
      Exception - if downsample encoding is incorrect
      See Also:
      • "uk.ac.diamond.scisoft.analysis.dataset.function.Downsample"
    • downsample

      List<? extends org.eclipse.january.dataset.IDataset> downsample(DownsampleMode mode, int[] binShape, org.eclipse.january.dataset.IDataset... data) throws Exception
      Same as the downsample with a string argument but instead of encoding the types in the string, they are provided directly.
      Parameters:
      mode -
      binShape -
      data -
      Returns:
      list of downsampled datasets
      Throws:
      Exception