/** * Adds a range of output dimensions to keep in the separated transform. * The {@code lower} and {@code upper} values define a range of <em>target</em> dimension indices * of the transform given to the constructor. * * @param lower the lower dimension, inclusive. Shall not be smaller than 0. * @param upper the upper dimension, exclusive. Shall be smaller than {@link MathTransform#getTargetDimensions()}. * @throws IllegalArgumentException if {@code lower} or {@code upper} are out of bounds. */ public void addTargetDimensionRange(final int lower, final int upper) throws IllegalArgumentException { targetDimensions = add(targetDimensions, lower, upper, transform.getTargetDimensions()); }
/** * Adds a range of output dimensions to keep in the separated transform. * The {@code lower} and {@code upper} values define a range of <em>target</em> dimension indices * of the transform given to the constructor. * * @param lower the lower dimension, inclusive. Shall not be smaller than 0. * @param upper the upper dimension, exclusive. Shall be smaller than {@link MathTransform#getTargetDimensions()}. * @throws IllegalArgumentException if {@code lower} or {@code upper} are out of bounds. */ public void addTargetDimensionRange(final int lower, final int upper) throws IllegalArgumentException { targetDimensions = add(targetDimensions, lower, upper, transform.getTargetDimensions()); }
/** * Adds a range of input dimensions to keep in the separated transform. * The {@code lower} and {@code upper} values define a range of <em>source</em> dimension indices * of the transform given to the constructor. * * @param lower the lower dimension, inclusive. Shall not be smaller than 0. * @param upper the upper dimension, exclusive. Shall be smaller than {@link MathTransform#getSourceDimensions()}. * @throws IllegalArgumentException if {@code lower} or {@code upper} are out of bounds. */ public void addSourceDimensionRange(final int lower, final int upper) throws IllegalArgumentException { sourceDimensions = add(sourceDimensions, lower, upper, transform.getSourceDimensions()); }
/** * Adds a range of input dimensions to keep in the separated transform. * The {@code lower} and {@code upper} values define a range of <em>source</em> dimension indices * of the transform given to the constructor. * * @param lower the lower dimension, inclusive. Shall not be smaller than 0. * @param upper the upper dimension, exclusive. Shall be smaller than {@link MathTransform#getSourceDimensions()}. * @throws IllegalArgumentException if {@code lower} or {@code upper} are out of bounds. */ public void addSourceDimensionRange(final int lower, final int upper) throws IllegalArgumentException { sourceDimensions = add(sourceDimensions, lower, upper, transform.getSourceDimensions()); }
/** * Adds input dimensions to keep in the separated transform. * The given values are <em>source</em> dimension indices of the transform given to the constructor. * * <p>Constraints:</p> * <ul> * <li>All numbers shall be in the range 0 inclusive to {@link MathTransform#getSourceDimensions()} exclusive.</li> * <li>The {@code dimensions} values shall be in strictly increasing order.</li> * <li>The {@code dimensions} values shall be greater than all values specified by all previous calls * of this method since construction or since the last call to {@link #clear()}.</li> * </ul> * * @param dimensions a sequence of source dimensions to keep, in strictly increasing order. * @throws IllegalArgumentException if {@code dimensions} contains negative values * or if values are not in a strictly increasing order. */ public void addSourceDimensions(final int... dimensions) throws IllegalArgumentException { ArgumentChecks.ensureNonNull("dimensions", dimensions); sourceDimensions = add(sourceDimensions, dimensions, transform.getSourceDimensions()); }
/** * Adds output dimensions to keep in the separated transform. * The given values are <em>target</em> dimension indices of the transform given to the constructor. * * <p>Constraints:</p> * <ul> * <li>All numbers shall be in the range 0 inclusive to {@link MathTransform#getTargetDimensions()} exclusive.</li> * <li>The {@code dimensions} values shall be in strictly increasing order.</li> * <li>The {@code dimensions} values shall be greater than all values specified by all previous calls * of this method since construction or since the last call to {@link #clear()}.</li> * </ul> * * @param dimensions a sequence of target dimensions to keep, in strictly increasing order. * @throws IllegalArgumentException if {@code dimensions} contains negative values * or if values are not in a strictly increasing order. */ public void addTargetDimensions(final int... dimensions) throws IllegalArgumentException { ArgumentChecks.ensureNonNull("dimensions", dimensions); targetDimensions = add(targetDimensions, dimensions, transform.getTargetDimensions()); }
/** * Adds output dimensions to keep in the separated transform. * The given values are <em>target</em> dimension indices of the transform given to the constructor. * * <p>Constraints:</p> * <ul> * <li>All numbers shall be in the range 0 inclusive to {@link MathTransform#getTargetDimensions()} exclusive.</li> * <li>The {@code dimensions} values shall be in strictly increasing order.</li> * <li>The {@code dimensions} values shall be greater than all values specified by all previous calls * of this method since construction or since the last call to {@link #clear()}.</li> * </ul> * * @param dimensions a sequence of target dimensions to keep, in strictly increasing order. * @throws IllegalArgumentException if {@code dimensions} contains negative values * or if values are not in a strictly increasing order. */ public void addTargetDimensions(final int... dimensions) throws IllegalArgumentException { ArgumentChecks.ensureNonNull("dimensions", dimensions); targetDimensions = add(targetDimensions, dimensions, transform.getTargetDimensions()); }
/** * Adds input dimensions to keep in the separated transform. * The given values are <em>source</em> dimension indices of the transform given to the constructor. * * <p>Constraints:</p> * <ul> * <li>All numbers shall be in the range 0 inclusive to {@link MathTransform#getSourceDimensions()} exclusive.</li> * <li>The {@code dimensions} values shall be in strictly increasing order.</li> * <li>The {@code dimensions} values shall be greater than all values specified by all previous calls * of this method since construction or since the last call to {@link #clear()}.</li> * </ul> * * @param dimensions a sequence of source dimensions to keep, in strictly increasing order. * @throws IllegalArgumentException if {@code dimensions} contains negative values * or if values are not in a strictly increasing order. */ public void addSourceDimensions(final int... dimensions) throws IllegalArgumentException { ArgumentChecks.ensureNonNull("dimensions", dimensions); sourceDimensions = add(sourceDimensions, dimensions, transform.getSourceDimensions()); }