Changeset 1122 for trunk/yat/statistics/AveragerPairWeighted.cc
 Timestamp:
 Feb 22, 2008, 6:01:15 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/statistics/AveragerPairWeighted.cc
r1043 r1122 27 27 #include "AveragerPair.h" 28 28 #include "Averager.h" 29 #include "yat/classifier/DataLookup1D.h"30 #include "yat/classifier/DataLookupWeighted1D.h"31 29 32 30 #include <cassert> … … 63 61 double AveragerPairWeighted::correlation(void) const 64 62 { 65 return ( x_.variance()>0 && y_.variance()>0 ? 66 covariance() / sqrt(x_.variance()*y_.variance()) : 0 ); 63 return covariance() / sqrt(x_.variance()*y_.variance()); 67 64 } 68 65
Note: See TracChangeset
for help on using the changeset viewer.