Changeset 1271 for trunk/yat/regression


Ignore:
Timestamp:
Apr 9, 2008, 6:11:07 PM (13 years ago)
Author:
Peter
Message:

replaced u_int with unsigned int or size_t

Location:
trunk/yat/regression
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/OneDimensional.cc

    r1000 r1271  
    5353
    5454  std::ostream& OneDimensional::print(std::ostream& os, const double min,
    55                                       double max, const u_int n) const
     55                                      double max, const unsigned int n) const
    5656  {
    5757    double dx;
  • trunk/yat/regression/OneDimensional.h

    r1019 r1271  
    106106    ///
    107107    std::ostream& print(std::ostream& os,const double min,
    108                         double max, const u_int n) const;
     108                        double max, const unsigned int n) const;
    109109
    110110    /**
  • trunk/yat/regression/Polynomial.cc

    r1121 r1271  
    5555    utility::Matrix X=utility::Matrix(x.size(),power_+1,1);
    5656    for (size_t i=0; i<X.rows(); ++i)
    57       for (u_int j=1; j<X.columns(); j++)
     57      for (size_t j=1; j<X.columns(); ++j)
    5858        X(i,j)=X(i,j-1)*x(i);
    5959    md_.fit(X,y);
  • trunk/yat/regression/PolynomialWeighted.cc

    r1121 r1271  
    5656    utility::Matrix X=utility::Matrix(x.size(),power_+1,1);
    5757    for (size_t i=0; i<X.rows(); ++i)
    58       for (u_int j=1; j<X.columns(); j++)
     58      for (size_t j=1; j<X.columns(); ++j)
    5959        X(i,j)=X(i,j-1)*x(i);
    6060    md_.fit(X,y,w);
Note: See TracChangeset for help on using the changeset viewer.