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_MEV.cc

    r1146 r1163  
    6868  double Kernel_MEV::operator()(const size_t row, const size_t column) const
    6969  {
    70     if (data_w_)
    71       return (*kf_)(DataLookupWeighted1D(*data_w_,row,false),
    72                     DataLookupWeighted1D(*data_w_,column,false));
     70    if (weighted())
     71      return (*kf_)(DataLookupWeighted1D(*mlw_,row,false),
     72                    DataLookupWeighted1D(*mlw_,column,false));
    7373    else
    74       return (*kf_)(DataLookup1D(dynamic_cast<const MatrixLookup&>
    75                                  (*data_),row,false),
    76                     DataLookup1D(dynamic_cast<const MatrixLookup&>
    77                                  (*data_),column,false));
     74      return (*kf_)(DataLookup1D(*ml_,row,false),
     75                    DataLookup1D(*ml_,column,false));
    7876  }
    7977
Note: See TracChangeset for help on using the changeset viewer.