Package mvpa :: Package misc :: Module stats :: Class DSMatrix
[hide private]
[frames] | no frames]

Class DSMatrix

source code


DSMatrix allows for the creation of dissilimarity matrices using arbitrary distance metrics.
Instance Methods [hide private]
 
__init__(self, data_vectors, metric='spearman')
Initialize DSMatrix
source code
 
getTriangle(self) source code
 
getVectorForm(self) source code
 
getFullMatrix(self) source code
 
getMetric(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data_vectors, metric='spearman')
(Constructor)

source code 
Initialize DSMatrix
Parameters:
  • data_vectors (ndarray) - m x n collection of vectors, where m is the number of exemplars and n is the number of features per exemplar
  • metric (string) - Distance metric to use (e.g., 'euclidean', 'spearman', 'pearson', 'confusion')
Overrides: object.__init__