Ignore:
Timestamp:
Feb 23, 2008, 11:52:43 PM (14 years ago)
Author:
Peter
Message:

using Index class instead of std::vector<size_t>

File:
1 edited

Legend:

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

    r1125 r1134  
    2929#include "DataLookup2D.h"
    3030#include "yat/utility/Container2DIterator.h"
     31#include "yat/utility/Index.h"
    3132#include "yat/utility/iterator_traits.h"
    3233#include "yat/utility/StrideIterator.h"
     
    118119    /// undefined.
    119120    ///
    120     MatrixLookup(const utility::Matrix& matrix, const std::vector<size_t>& row,
    121                  const std::vector<size_t>& column);
     121    MatrixLookup(const utility::Matrix& matrix, const utility::Index& row,
     122                 const utility::Index& column);
    122123
    123124    ///
     
    139140    ///
    140141    MatrixLookup(const utility::Matrix& matrix,
    141                  const std::vector<size_t>& index,
     142                 const utility::Index& index,
    142143                 const bool row_vectors);
    143144
     
    178179    /// undefined.
    179180    ///
    180     MatrixLookup(const MatrixLookup& ml, const std::vector<size_t>& row,
    181                  const std::vector<size_t>& column);
     181    MatrixLookup(const MatrixLookup& ml, const utility::Index& row,
     182                 const utility::Index& column);
    182183
    183184    ///
     
    203204    /// undefined.
    204205    ///
    205     MatrixLookup(const MatrixLookup& ml, const std::vector<size_t>&,
     206    MatrixLookup(const MatrixLookup& ml, const utility::Index&,
    206207                 const bool row_vectors);
    207208
     
    279280   
    280281    */
    281     const MatrixLookup* selected(const std::vector<size_t>&) const;
     282    const MatrixLookup* selected(const utility::Index&) const;
    282283
    283284    ///
     
    296297    /// to be deleted by the caller to avoid memory leaks.
    297298    ///
    298     const MatrixLookup* training_data(const std::vector<size_t>& index) const;
     299    const MatrixLookup* training_data(const utility::Index& index) const;
    299300   
    300301    ///
     
    310311    /// undefined.
    311312    ///
    312     const MatrixLookup* validation_data(const std::vector<size_t>&,
    313                                         const std::vector<size_t>&) const;
     313    const MatrixLookup* validation_data(const utility::Index&,
     314                                        const utility::Index&) const;
    314315    ///
    315316    /// @return false
Note: See TracChangeset for help on using the changeset viewer.