java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.MapTo2D
All Implemented Interfaces:
DatasetToDatasetFunction

public class MapTo2D extends Object implements DatasetToDatasetFunction
Map a N-D dataset from one Cartesian system to another and return that remapped 2D dataset
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapTo2D(double[] point, double[] step0, double[] step1, int n0, int n1)
    Set up mapping of 2D dataset
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.january.dataset.Dataset>
    value(org.eclipse.january.dataset.IDataset... datasets)
    The class implements mapping of a Cartesian lattice sampled data (pixels) to another Cartesian grid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapTo2D

      public MapTo2D(double[] point, double[] step0, double[] step1, int n0, int n1)
      Set up mapping of 2D dataset
      Parameters:
      point - origin point for 2d dataset
      step0 - direction vector for step in 0th dimension (axis down column)
      step1 - direction vector for step in 1st dimension (axis along row)
      n0 - number of rows
      n1 - number of columns
  • Method Details

    • value

      public List<org.eclipse.january.dataset.Dataset> value(org.eclipse.january.dataset.IDataset... datasets)
      The class implements mapping of a Cartesian lattice sampled data (pixels) to another Cartesian grid
      Specified by:
      value in interface DatasetToDatasetFunction
      Parameters:
      datasets - input N-D dataset
      Returns:
      a 2D dataset