Ignore:
Timestamp:
06/10/02 09:04:28 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1348 r1354  
    4545#include "MHMatrix.h"
    4646
    47 #include <math.h>     // fabs on Alpha
    48 
    4947#include <TList.h>
    5048#include <TArrayD.h>
     
    353351        d2 *= m;
    354352
    355         dists[i] = fabs(d2*d);
     353        dists[i] = d2*d; // square of distance
    356354    }
    357355
     
    365363        res += dists[idx[i]];
    366364
    367     return res/n;
     365    return sqrt(res)/n;
    368366}
    369367
Note: See TracChangeset for help on using the changeset viewer.