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.datasets.eventrelated.value2idx

mvpa2.datasets.eventrelated.value2idx(val, x, solv='round')

Convert a value into an index of the closes matching array element.

Parameters :

val : scalar

Value that is to be converted.

x : array or sequence

One-dimensional array whose elements are used for comparision.

solv : {‘round’, ‘floor’, ‘ceil’}

Resolver strategie: absolute closest element (round), closest smaller element (floor), or closest larger element (ceil).

Returns :

int :

NeuroDebian

NITRC-listed