Changeset 1354 for trunk/MagicSoft/Mars/mhist/MHMatrix.cc
- Timestamp:
- 06/10/02 09:04:28 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1348 r1354 45 45 #include "MHMatrix.h" 46 46 47 #include <math.h> // fabs on Alpha48 49 47 #include <TList.h> 50 48 #include <TArrayD.h> … … 353 351 d2 *= m; 354 352 355 dists[i] = fabs(d2*d);353 dists[i] = d2*d; // square of distance 356 354 } 357 355 … … 365 363 res += dists[idx[i]]; 366 364 367 return res/n;365 return sqrt(res)/n; 368 366 } 369 367
Note:
See TracChangeset
for help on using the changeset viewer.