Ignore:
Timestamp:
Feb 22, 2008, 12:18:41 AM (14 years ago)
Author:
Peter
Message:

vector is now Vector

File:
1 edited

Legend:

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

    r1108 r1120  
    3030#include "yat/statistics/Averager.h"
    3131#include "yat/utility/matrix.h"
    32 #include "yat/utility/vector.h"
     32#include "yat/utility/Vector.h"
    3333
    3434#include <algorithm>
     
    7676
    7777
    78   const utility::vector& SVM::alpha(void) const
     78  const utility::Vector& SVM::alpha(void) const
    7979  {
    8080    return alpha_;
     
    134134
    135135
    136   const theplu::yat::utility::vector& SVM::output(void) const
     136  const utility::Vector& SVM::output(void) const
    137137  {
    138138    return output_;
     
    186186    target_ = targ;
    187187   
    188     alpha_ = utility::vector(targ.size(), 0.0);
    189     output_ = utility::vector(targ.size(), 0.0);
     188    alpha_ = utility::Vector(targ.size(), 0.0);
     189    output_ = utility::Vector(targ.size(), 0.0);
    190190    // initializing variables for optimization
    191191    assert(target_.size()==kernel_->rows());
     
    193193
    194194    sample_.init(alpha_,tolerance_);
    195     utility::vector   E(target_.size(),0);
     195    utility::Vector   E(target_.size(),0);
    196196    for (size_t i=0; i<E.size(); i++) {
    197197      for (size_t j=0; j<E.size(); j++)
     
    273273
    274274
    275   bool SVM::choose(const theplu::yat::utility::vector& E)
     275  bool SVM::choose(const theplu::yat::utility::Vector& E)
    276276  {
    277277    // First check for violation among SVs
Note: See TracChangeset for help on using the changeset viewer.