Changeset 166


Ignore:
Timestamp:
Sep 23, 2004, 11:12:57 AM (17 years ago)
Author:
Peter
Message:

Kernel object modified to contain information about the KernelFunction? used.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Kernel.cc

    r163 r166  
    1111
    1212Kernel::Kernel(const gslapi::matrix& data, const KernelFunction& kf)
    13   : k_(data.columns(),data.columns())
     13  : k_(data.columns(),data.columns()), kf_(&kf), weighted_(false)
    1414{
    1515  k_ = kf(k_,data);
     16  kf_=0;
    1617}
    1718
    1819Kernel::Kernel(const gslapi::matrix& data, const KernelFunction& kf,
    1920               const gslapi::matrix& weight)
    20   : k_(data.columns(),data.columns())
     21  : k_(data.columns(),data.columns()), kf_(&kf), weighted_(true)
    2122{
    2223  for(u_int i=0;i<data.columns();i++)
  • trunk/src/Kernel.h

    r122 r166  
    4242  private:
    4343    gslapi::matrix k_;
     44    const theplu::cpptools::KernelFunction* kf_;
     45    bool weighted_;
    4446
    4547  }; // class Kernel
Note: See TracChangeset for help on using the changeset viewer.