Changeset 961 for trunk/yat/classifier


Ignore:
Timestamp:
Oct 10, 2007, 7:51:25 PM (14 years ago)
Author:
Peter
Message:

correcting NBC train. refs ticket:271

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/NBC.cc

    r960 r961  
    103103          assert(i<sigma2_.rows());
    104104          assert(j<sigma2_.columns());
    105           if (aver[j].variance())
     105          if (aver[j].n()>1)
    106106            sigma2_(i,j) = aver[j].variance();
    107107          else
     
    124124          assert(i<sigma2_.rows());
    125125          assert(j<sigma2_.columns());
    126           if (aver[j].variance())
     126          if (aver[j].n()>1)
    127127            sigma2_(i,j) = aver[j].variance();
    128128          else
Note: See TracChangeset for help on using the changeset viewer.