Changeset 890 for trunk/yat/classifier


Ignore:
Timestamp:
Sep 25, 2007, 11:35:25 AM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #245 #246 #247

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

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

    r865 r890  
    6767
    6868
     69  DataLookupWeighted1D::const_iterator DataLookupWeighted1D::begin(void) const
     70  {
     71    return DataLookupWeighted1D::const_iterator(*this, 0);
     72  }
     73
     74
    6975  double DataLookupWeighted1D::data(const size_t i) const
    7076  {
    7177    return column_vector_? matrix_->data(i,index_) : matrix_->data(index_,i);
    7278  }
     79
     80
     81  DataLookupWeighted1D::const_iterator DataLookupWeighted1D::end(void) const
     82  {
     83    return DataLookupWeighted1D::const_iterator(*this, size());
     84  }
     85
    7386
    7487
  • trunk/yat/classifier/DataLookupWeighted1D.h

    r865 r890  
    2626*/
    2727
     28#include "yat/utility/IteratorWeighted.h"
     29
    2830#include <iostream>
    2931#include <vector>
     
    4446 
    4547  public:
     48   
     49    typedef utility::IteratorWeighted<const double, const classifier::DataLookupWeighted1D>
     50    const_iterator;
    4651
    4752    ///
     
    7277
    7378    /**
     79     */
     80    const_iterator begin() const;
     81
     82    /**
    7483       \return data(i)
    7584    */
    7685    double data(const size_t i) const;
     86   
     87    /**
     88     */
     89    const_iterator end() const;
    7790
    7891    ///
Note: See TracChangeset for help on using the changeset viewer.