Changeset 1012
 Timestamp:
 Feb 1, 2008, 3:18:15 PM (14 years ago)
 Location:
 trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test/vector_distance_test.cc
r999 r1012 88 88 statistics::euclidean_vector_distance_tag()); 89 89 90 if(fabs(dist 2)>tolerance) {90 if(fabs(distsqrt(6))>tolerance) { 91 91 *error << "Error in weighted Euclidean vector_distance " << std::endl; 92 92 ok=false; … … 130 130 if (error!=&std::cerr) 131 131 delete error; 132 if (ok =true)132 if (ok) 133 133 return 0; 134 134 return 1; 
trunk/yat/statistics/euclidean_vector_distance.h
r999 r1012 77 77 AveragerPairWeighted ap; 78 78 add(ap,beg1,end1,beg2); 79 return sqrt( (beg2beg1)*ap.msd());79 return sqrt(std::distance(beg1,end1)*ap.msd()); 80 80 } 81 81
Note: See TracChangeset
for help on using the changeset viewer.