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/utility/NNI.h

    r1260 r1271  
    3333#include <utility>
    3434#include <vector>
    35 
    36 #include <sys/types.h>
    3735
    3836namespace theplu {
     
    9290    ///
    9391    NNI(const utility::Matrix& matrix,const utility::Matrix& weight,
    94         const u_int neighbours);
     92        const unsigned int neighbours);
    9593
    9694    virtual ~NNI(void) {};
     
    10199    /// @return number of rows not imputed
    102100    ///
    103     virtual u_int estimate(void)=0;
     101    virtual unsigned int estimate(void)=0;
    104102
    105103    ///
     
    118116       }{\sum_{k=l}^C w_{ik} w_{jk} } \f$ where C is the number of columns
    119117    */
    120     std::vector<std::pair<u_int,double> > calculate_distances(const u_int) const;
     118    std::vector<std::pair<size_t,double> >
     119    calculate_distances(const size_t) const;
    121120    /// Contributing nearest neighbours are added up to the user set
    122121    /// number, and neighbours are disqualified if their element
    123122    /// (column) weight is zero
    124     std::vector<u_int> nearest_neighbours(const u_int,
    125                              const std::vector<std::pair<u_int,double> >&) const;
     123    std::vector<size_t>
     124    nearest_neighbours(const size_t,
     125                       const std::vector<std::pair<size_t,double> >&) const;
    126126    ///
    127127    /// original data matrix
     
    137137    /// number of neighbor to use
    138138    ///
    139     u_int neighbours_;
     139    unsigned int neighbours_;
    140140
    141141    ///
Note: See TracChangeset for help on using the changeset viewer.