Ignore:
Timestamp:
Feb 26, 2008, 6:15:43 PM (14 years ago)
Author:
Peter
Message:

replacing DataLookup2D* data_ in Kernel with a MatrixLookup?*. The weighted case was already covered by a MatrixLookup2D*

File:
1 edited

Legend:

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

    r1146 r1163  
    4747    : Kernel(data,kf, own)
    4848  {
    49     kernel_matrix_.resize(data_->columns(),data_->columns());
     49    kernel_matrix_.resize(data.columns(),data.columns());
    5050    for (size_t i=0; i<kernel_matrix_.rows(); i++)
    5151      for (size_t j=i; j<kernel_matrix_.columns(); j++)
     
    6666  void Kernel_SEV::build_kernel(void)
    6767  {
    68     kernel_matrix_.resize(data_->columns(),data_->columns());
     68    kernel_matrix_.resize(size(),size());
    6969    for (size_t i=0; i<kernel_matrix_.rows(); i++)
    7070      for (size_t j=i; j<kernel_matrix_.columns(); j++)
    7171        kernel_matrix_(i,j) = kernel_matrix_(j,i) =
    72           (*kf_)(DataLookup1D(dynamic_cast<const MatrixLookup&>(*data_),i,false),
    73                  DataLookup1D(dynamic_cast<const MatrixLookup&>(*data_),j,false));
     72          (*kf_)(DataLookup1D(*ml_,i,false),
     73                 DataLookup1D(*ml_,j,false));
    7474  }
    7575
Note: See TracChangeset for help on using the changeset viewer.