Ignore:
Timestamp:
Sep 25, 2006, 4:12:03 AM (15 years ago)
Author:
Peter
Message:

added function in KernelLookup? to create a KernelLookup? from inner data and outer (passed) data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/Kernel_SEV.h

    r651 r658  
    3434    /// use KernelWeighted_SEV instead.
    3535    ///
    36     Kernel_SEV(const MatrixLookup&, const KernelFunction&);
     36    Kernel_SEV(const MatrixLookup&, const KernelFunction&,const bool own=false);
    3737   
    3838    ///
     
    4141    /// use KernelWeighted_SEV instead.
    4242    ///
    43     Kernel_SEV(const MatrixLookupWeighted&, const KernelFunction&);
     43    Kernel_SEV(const MatrixLookupWeighted&, const KernelFunction&,
     44               const bool own=false);
    4445   
    4546    ///
     
    4849    Kernel_SEV(const Kernel_SEV& kernel, const std::vector<size_t>& index);
    4950
     51
     52    ///
     53    /// An interface for making new classifier objects. This function
     54    /// allows for specification at run-time of which kernel to
     55    /// instatiate (see 'Prototype' in Design Patterns).
     56    ///
     57    /// @Note Returns a dynamically allocated Kernel, which has
     58    /// to be deleted by the caller to avoid memory leaks.
     59    ///
     60    const Kernel_SEV* make_kernel(const MatrixLookup&,
     61                                  const bool own=false) const;
     62
     63
     64    ///
     65    /// An interface for making new classifier objects. This function
     66    /// allows for specification at run-time of which kernel to
     67    /// instatiate (see 'Prototype' in Design Patterns).
     68    ///
     69    /// @Note Returns a dynamically allocated Kernel, which has
     70    /// to be deleted by the caller to avoid memory leaks.
     71    ///
     72    const Kernel_SEV* make_kernel(const MatrixLookupWeighted&,
     73                                  const bool own=false) const;
     74
     75
    5076    ///
    5177    /// @return element at position (\a row, \a column) in the Kernel
    5278    /// matrix
    5379    ///
    54     inline double operator()(const size_t row,const size_t column) const
    55     { return kernel_matrix_(row,column); }
     80    double operator()(const size_t row,const size_t column) const;
     81
    5682
    5783    ///
Note: See TracChangeset for help on using the changeset viewer.