Show
Ignore:
Timestamp:
07/29/09 12:46:16 (15 years ago)
Author:
vbarta
Message:

mgamma configurable tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/epdf_harness.cpp

    r442 r447  
    9191    if (R.rows() > 0) { 
    9292        mat smp = hepdf->sample_m(nsamples); 
    93         int N = smp.cols(); 
    94         vec Emu = smp*ones(N) /N ; 
    95         mat Er = (smp*smp.transpose())/N - outer_product(Emu,Emu); 
     93        int n = smp.cols(); 
     94        vec Emu = smp * ones(n) / n; 
     95        mat Er = (smp*smp.transpose())/n - outer_product(Emu,Emu); 
    9696        CHECK_CLOSE(mean, Emu, 0.1); 
    9797        CHECK_CLOSE(R, Er, 0.1);