11 #ifndef _LINEARSTRINGKERNEL_H___
12 #define _LINEARSTRINGKERNEL_H___
71 virtual const char*
get_name()
const {
return "LinearStringKernel"; }
82 int32_t num_suppvec, int32_t* sv_idx,
float64_t* alphas);
virtual EKernelType get_kernel_type()
virtual bool init_optimization(int32_t num_suppvec, int32_t *sv_idx, float64_t *alphas)
virtual void add_to_normal(int32_t idx, float64_t weight)
virtual const char * get_name() const
virtual ~CLinearStringKernel()
Computes the standard linear kernel on dense char valued features.
virtual bool init(CFeatures *l, CFeatures *r)
virtual void clear_normal()
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual float64_t compute_optimized(int32_t idx)
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual bool delete_optimization()
Template class StringKernel, is the base class of all String Kernels.