Changeset 322


Ignore:
Timestamp:
May 26, 2005, 10:50:05 PM (16 years ago)
Author:
Peter
Message:

made arguments const and added some doc

Location:
trunk/lib/svm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/svm/Kernel_MEV.h

    r307 r322  
    1212
    1313  ///
     14  ///   @brief Memory Efficient Kernel
    1415  ///   Class taking care of the \f$NxN\f$ kernel matrix, where
    1516  ///   \f$N\f$ is number of samples. Type of Kernel is defined by a
    16   ///   KernelFunction. This Memory Efficient Versions (SEV) does not
     17  ///   KernelFunction. This Memory Efficient Version (MEV) does not
    1718  ///   store the kernel matrix in memory, but calculates each element
    18   ///   when it is needed.
     19  ///   when it is needed. When memory allows do always use Kernel_SEV
     20  ///   instead.
    1921  ///   
    2022  ///   @see also Kernel_SEV
     
    3537   
    3638    ///
     39    ///   @todo
    3740    ///   Constructor taking the \a data matrix, the KernelFunction and a
    3841    ///   \a weight matrix as input. Each column in the data matrix
    3942    ///   corresponds to one sample.
    40     ///   @todo
    4143    Kernel_MEV(const gslapi::matrix& data, const KernelFunction&,
    4244               const gslapi::matrix& weight);
     
    5153    /// matrix
    5254    ///
    53     virtual double operator()(size_t row,size_t column) const;
     55    virtual double operator()(const size_t row,const size_t column) const;
    5456
    5557    ///
  • trunk/lib/svm/Kernel_SEV.h

    r307 r322  
    1414
    1515  ///
     16  ///   @brief Speed Efficient Kernel
    1617  ///   Class taking care of the \f$NxN\f$ kernel matrix, where
    1718  ///   \f$N\f$ is number of samples. Type of Kernel is defined by a
    18   ///   KernelFunction. This Speed Efficient Versions (SEV) calculated
    19   ///   the kernel matrix once and the kernel is stored in memory.
     19  ///   KernelFunction. This Speed Efficient Version (SEV) calculated
     20  ///   the kernel matrix once and the kernel is stored in
     21  ///   memory. When \f$N\f$ is large and the kernel matrix cannot be
     22  ///   stored in memory, use Kernel_MEV instead.
    2023  ///   
    2124  ///   @see also Kernel_MEV
     
    3235    Kernel_SEV(const gslapi::matrix&, const KernelFunction&);
    3336   
     37    ///
     38    /// @todo
     39    /// Copy constructor
     40    ///
    3441    Kernel_SEV(const Kernel_SEV&);
    3542
     
    4047
    4148    ///
    42     /// @return element at position (\a row, \a column) of the Kernel
     49    /// @return element at position (\a row, \a column) in the Kernel
    4350    /// matrix
    4451    ///
    45     inline double operator()(size_t row,size_t column) const
     52    inline double operator()(const size_t row,const size_t column) const
    4653    { return kernel_(row,column); }
    4754   
Note: See TracChangeset for help on using the changeset viewer.