Ignore:
Timestamp:
Apr 9, 2008, 6:11:07 PM (13 years ago)
Author:
Peter
Message:

replaced u_int with unsigned int or size_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/IGP.h

    r1158 r1271  
    116116    igp_ = utility::Vector(target_.nof_classes());
    117117   
    118     for(u_int i=0; i<target_.size(); i++) {
    119       u_int neighbor=i;
     118    for(size_t i=0; i<target_.size(); i++) {
     119      size_t neighbor=i;
    120120      double mindist=std::numeric_limits<double>::max();
    121121      const DataLookup1D a(matrix_,i,false);
    122       for(u_int j=0; j<target_.size(); j++) {           
     122      for(size_t j=0; j<target_.size(); j++) {           
    123123        DataLookup1D b(matrix_,j,false);
    124124        double dist=distance_(a.begin, a.end(), b.begin());
     
    132132     
    133133    }
    134     for(u_int i=0; i<target_.nof_classes(); i++) {
     134    for(size_t i=0; i<target_.nof_classes(); i++) {
    135135      igp_(i)/=static_cast<double>(target_.size(i));
    136136    }
Note: See TracChangeset for help on using the changeset viewer.