Ignore:
Timestamp:
Feb 3, 2008, 2:53:29 AM (14 years ago)
Author:
Peter
Message:

documentation for VectorConstView? and changing name of view functions in matrix

File:
1 edited

Legend:

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

    r1027 r1028  
    206206    // normalize each row (label) to sum up to unity (probability)
    207207    for (size_t i=0; i<prediction.rows(); ++i){
    208       prediction.row_vec(i) *=
    209         1.0/sum(prediction.row_const_vec(i));
     208      prediction.row_view(i) *= 1.0/sum(prediction.row_const_view(i));
    210209    }
    211210  }
Note: See TracChangeset for help on using the changeset viewer.