12 #ifndef _LINEARKERNEL_H___
13 #define _LINEARKERNEL_H___
70 virtual const char*
get_name()
const {
return "LinearKernel"; }
81 int32_t num_suppvec, int32_t* sv_idx,
float64_t* alphas);
139 ASSERT(dst_w && dst_dims);
Computes the standard linear kernel on CDotFeatures.
const float64_t * get_normal(int32_t &len)
virtual float64_t compute_optimized(int32_t idx)
virtual bool delete_optimization()
A generic KernelMachine interface.
Features that support dot products among other operations.
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual void clear_normal()
virtual void add_to_normal(int32_t idx, float64_t weight)
void get_w(float64_t **dst_w, int32_t *dst_dims)
virtual bool init(CFeatures *l, CFeatures *r)
void set_w(float64_t *src_w, int32_t src_w_dim)
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual EKernelType get_kernel_type()
virtual const char * get_name() const
virtual bool init_optimization(int32_t num_suppvec, int32_t *sv_idx, float64_t *alphas)
#define SG_MALLOC(type, len)