Changeset 9805:6b1b33eddc91 in orange for Orange/distance/__init__.py
 Timestamp:
 02/06/12 18:19:54 (2 years ago)
 Branch:
 default
 Children:
 9806:01ddd2a2ff48, 9824:2923e3d2c90a, 9883:33c19621e154
 rebase_source:
 a0c6b340d0ac77bb5784df9ad20e20966f5fbdbb
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/distance/__init__.py
r9759 r9805 27 27 28 28 class PearsonR(DistanceConstructor): 29 """Constructs an instance of :obj:`PearsonRDistance`. Not all the data needs to be given."""30 29 31 30 def __new__(cls, data=None, **argkw): … … 46 45 `Pearson correlation coefficient 47 46 <http://en.wikipedia.org/wiki/Pearson_productmoment\ 48 _correlation_coefficient>`_ 47 _correlation_coefficient>`_. 49 48 """ 50 49 … … 58 57 59 58 Returns Pearson's disimilarity between e1 and e2, 60 i.e. (1r)/2 where r is Sprearman's rank coefficient.59 i.e. (1r)/2 where r is Pearson's rank coefficient. 61 60 """ 62 61 X1 = [] … … 74 73 75 74 class SpearmanR(DistanceConstructor): 76 """Constructs an instance of SpearmanR. Not all the data needs to be given."""77 75 78 76 def __new__(cls, data=None, **argkw): … … 93 91 """`Spearman's rank correlation coefficient 94 92 <http://en.wikipedia.org/wiki/Spearman%27s_rank_\ 95 correlation_coefficient>`_ """93 correlation_coefficient>`_.""" 96 94 97 95 def __init__(self, **argkw): … … 119 117 120 118 class Mahalanobis(DistanceConstructor): 121 """ Construct instance of Mahalanobis. """122 119 123 120 def __new__(cls, data=None, **argkw):
Note: See TracChangeset
for help on using the changeset viewer.