To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.misc.support.transform_with_boxcar

mvpa2.misc.support.transform_with_boxcar(data, startpoints, boxlength, offset=0, fx=<function mean at 0x1865c80>)

This function extracts boxcar windows from an array. Such a boxcar is defined by a starting point and the size of the window along the first axis of the array (boxlength). Afterwards a customizable function is applied to each boxcar individually (Default: averaging).

Parameters:
  • data (array) – An array with an arbitrary number of dimensions.
  • startpoints (sequence) – Boxcar startpoints as index along the first array axis
  • boxlength (int) – Length of the boxcar window in #array elements
  • offset (int) – Optional offset between the configured starting point and the actual begining of the boxcar window.
Return type:

array (len(startpoints) x data.shape[1:])

Previous topic

mvpa2.misc.support.rfe_history_to_maps

Next topic

mvpa2.misc.support.unique_combinations

NeuroDebian

NITRC-listed