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.clfs.distance.pnorm_w

mvpa2.clfs.distance.pnorm_w(data1, data2=None, weight=None, p=2)

Weighted p-norm between two datasets (scipy.weave implementation)

||x - x’||_w = (sum_{i=1...N} (w_i*|x_i - x’_i|)**p)**(1/p)

Parameters :

data1 : np.ndarray

First dataset

data2 : np.ndarray or None

Optional second dataset

weight : np.ndarray or None

Optional weights per 2nd dimension (features)

p :

Power

NeuroDebian

NITRC-listed