Ignore:
Timestamp:
02/06/12 18:19:54 (2 years ago)
Author:
markotoplak
Branch:
default
Children:
9806:01ddd2a2ff48, 9824:2923e3d2c90a, 9883:33c19621e154
rebase_source:
a0c6b340d0ac77bb5784df9ad20e20966f5fbdbb
Message:

Worked on Orange.distance documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/distance/__init__.py

    r9759 r9805  
    2727 
    2828class PearsonR(DistanceConstructor): 
    29     """Constructs an instance of :obj:`PearsonRDistance`. Not all the data needs to be given.""" 
    3029     
    3130    def __new__(cls, data=None, **argkw): 
     
    4645    `Pearson correlation coefficient 
    4746    <http://en.wikipedia.org/wiki/Pearson_product-moment\ 
    48     _correlation_coefficient>`_ 
     47    _correlation_coefficient>`_. 
    4948    """ 
    5049 
     
    5857         
    5958        Returns Pearson's disimilarity between e1 and e2, 
    60         i.e. (1-r)/2 where r is Sprearman's rank coefficient. 
     59        i.e. (1-r)/2 where r is Pearson's rank coefficient. 
    6160        """ 
    6261        X1 = [] 
     
    7473 
    7574class SpearmanR(DistanceConstructor): 
    76     """Constructs an instance of SpearmanR. Not all the data needs to be given.""" 
    7775     
    7876    def __new__(cls, data=None, **argkw): 
     
    9391    """`Spearman's rank correlation coefficient 
    9492    <http://en.wikipedia.org/wiki/Spearman%27s_rank_\ 
    95     correlation_coefficient>`_""" 
     93    correlation_coefficient>`_.""" 
    9694 
    9795    def __init__(self, **argkw): 
     
    119117 
    120118class Mahalanobis(DistanceConstructor): 
    121     """ Construct instance of Mahalanobis. """ 
    122119     
    123120    def __new__(cls, data=None, **argkw): 
Note: See TracChangeset for help on using the changeset viewer.