Changeset 808 for trunk/yat/classifier


Ignore:
Timestamp:
Mar 15, 2007, 9:07:01 PM (17 years ago)
Author:
Peter
Message:

previous argument was invalid, but here is an implementation. Fixes #205

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

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

    r768 r808  
    106106    assert(data_.rows()==input.rows());
    107107
     108    //    utility
     109    //for (size_t i=0;
     110
     111
    108112    prediction = utility::matrix(centroids_.columns(),input.columns());
    109113    for (size_t c=0; c<centroids_.columns(); ++c) {
  • trunk/yat/classifier/NBC.h

    r768 r808  
    8282
    8383   
    84     ///
    85     /// For each sample, calculate the probabilies the sample belong
    86     /// to the corresponding class.
    87     ///
     84    /**
     85       For each sample, calculate the probabilities the sample belong
     86      to the corresponding class.
     87    */
    8888    void predict(const DataLookup2D& data, utility::matrix& res) const;
    8989
Note: See TracChangeset for help on using the changeset viewer.