Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


resamples array to have dimensions {n1,n2,}.

resamples array according to the dimension specification dspec.

specifies resampling scheme, either point or bin based.

resamples in the data subrange {{a1,b1},} using the rest of array for padding if necessary.

Details and OptionsDetails and Options

  • ArrayResample can be used for resampling data arrays based on a large selection of interpolation and approximation models.
  • ArrayResample works with data arrays of any depth.
  • The dimension specification dspec can be of the form:
  • nn samples
    Scaled[s]rescale sampling resolution by factor s
    Allpreserve dimension
    Automaticpreserve dimension ratios
    {dspec1,,dspeck}resample up to the ^(th) dimension
  • For a multidimensional array, the notation n is taken to be equivalent to {n,Automatic,} and {n} equivalent to {n,All,}.
  • The dimension ratios for an array of dimensions is taken to be .
  • The scheme determines the location of sample and resample positions and can be of the form:
  • "Point"point sampling (default)
    "Bin"bin sampling
    {"Bin",alignment}bin sampling with specified alignment
  • For input data of length n the "Point" resampling scheme assumes a data range from 1 to n and the "Bin" scheme assumes a data range from 0 to n with the alignment indicating the sample location within each bin.
  • The data range can be modified using the DataRange option.
  • Bin alignment alignment can be Left, Center, Right, or any number between (Left) and 1 (Right).
  • The following options can be given:
  • AntialiasingFalseapply antialiasing when downsampling
    DataRangeAutomaticrange of the input data
    Padding"Fixed"padding method
    ResamplingAutomaticresampling method
  • For possible settings for Padding, see the reference page for ArrayPad.
Introduced in 2014
| Updated in 2016