Class SingleDimensionPermutationTransform

    • Field Detail

      • numSourceDimensions

        protected final int numSourceDimensions
      • numTargetDimensions

        protected final int numTargetDimensions
      • d

        protected final int d
    • Constructor Detail

      • SingleDimensionPermutationTransform

        public SingleDimensionPermutationTransform​(int[] lut,
                                                   int numSourceDimensions,
                                                   int numTargetDimensions,
                                                   int d)
        Parameters:
        lut -
        numSourceDimensions - dimensionality of source
        numTargetDimensions - dimensionality of target
        d - dimension which shall be transformed. Must be smaller than numSourceDimensions and numTargetDimensions
    • Method Detail

      • applyInverse

        public void applyInverse​(long[] source,
                                 long[] target)
        Description copied from interface: InvertibleTransform
        Apply the inverse transform to a target vector to obtain a source vector.
        Parameters:
        source - set this to the source coordinates.
        target - target coordinates.
      • applyInverse

        public void applyInverse​(int[] source,
                                 int[] target)
        Description copied from interface: InvertibleTransform
        Apply the inverse transform to a target vector to obtain a source vector.
        Parameters:
        source - set this to the source coordinates.
        target - target coordinates.
      • numSourceDimensions

        public int numSourceDimensions()
        Description copied from interface: Transform
        Returns n, the dimension of the source vector.
        Returns:
        the dimension of the source vector.
      • numTargetDimensions

        public int numTargetDimensions()
        Description copied from interface: Transform
        Returns m, the dimension of the target vector.
        Returns:
        the dimension of the target vector.
      • apply

        public void apply​(long[] source,
                          long[] target)
        Description copied from interface: Transform
        Apply the Transform to a source vector to obtain a target vector.
        Parameters:
        source - source coordinates.
        target - set this to the target coordinates.
      • apply

        public void apply​(int[] source,
                          int[] target)
        Description copied from interface: Transform
        Apply the Transform to a source vector to obtain a target vector.
        Parameters:
        source - source coordinates.
        target - set this to the target coordinates.