Stump Struct Reference

Stump kernel $-\left|u-v\right|_1$. More...

#include <kernel.h>

Inheritance diagram for Stump:

Inheritance graph
[legend]
Collaboration diagram for Stump:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Stump ()
 Stump (std::istream &is)
virtual const id_tid () const
virtual Stumpcreate () const
 Create a new object using the default constructor.
virtual Stumpclone () const
 Create a new object by replicating itself.
virtual REAL operator() (const Input &a, const Input &b) const
 The inner-product of two input vectors.
virtual void set_params (SVM_detail *) const

Detailed Description

Stump kernel $-\left|u-v\right|_1$.

Definition at line 106 of file kernel.h.


Constructor & Destructor Documentation

Stump  )  [inline]
 

Definition at line 107 of file kernel.h.

Stump std::istream &  is  )  [inline, explicit]
 

Definition at line 108 of file kernel.h.


Member Function Documentation

virtual Stump* clone  )  const [inline, virtual]
 

Create a new object by replicating itself.

Returns:
A pointer to the new copy.
The code for a derived class Derived is always
 return new Derived(*this); 
Though seemingly redundant, it helps to copy an object without knowing the real type of the object.
See also:
C++ FAQ Lite 20.6

Implements Kernel.

Definition at line 112 of file kernel.h.

References Stump::Stump().

virtual Stump* create  )  const [inline, virtual]
 

Create a new object using the default constructor.

The code for a derived class Derived is always

 return new Derived(); 

Implements Kernel.

Definition at line 111 of file kernel.h.

References Stump::Stump().

virtual const id_t& id  )  const [virtual]
 

Returns:
Class ID string (class name)

Implements Object.

virtual REAL operator() const Input a,
const Input b
const [inline, virtual]
 

The inner-product of two input vectors.

Implements Kernel.

Definition at line 114 of file kernel.h.

References lemga::kernel::norm_1().

void set_params SVM_detail *   )  const [virtual]
 

In order to keep the SVM interface simple and avoid member functions specific to kernels (e.g., set_gamma()), we use Kernel to pass kernel parameters to SVM_detail.

Implements Kernel.

Definition at line 169 of file svm.cpp.


The documentation for this struct was generated from the following files:
Generated on Wed Nov 8 08:17:37 2006 for LEMGA by  doxygen 1.4.6