Ignore:
Timestamp:
Feb 19, 2008, 6:40:59 PM (14 years ago)
Author:
Peter
Message:

adding svm copy constructor

File:
1 edited

Legend:

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

    r1102 r1108  
    5656      trained_(false)
    5757  {
     58  }
     59
     60
     61  SVM::SVM(const SVM& other)
     62    : bias_(other.bias_), C_inverse_(other.C_inverse_), kernel_(NULL),
     63      margin_(0), max_epochs_(other.max_epochs_), tolerance_(other.tolerance_),
     64      trained_(other.trained_)
     65  {
     66    if (other.kernel_)
     67      kernel_ = new KernelLookup(*other.kernel_);
    5868  }
    5969
Note: See TracChangeset for help on using the changeset viewer.