17 using namespace shogun;
20 :
CDotKernel(), width(1), degree(1), weights(0)
26 :
CDotKernel(size), width(w), degree(d), nof_properties(nof_prop), weights(0)
33 :
CDotKernel(size), width(w), degree(d), nof_properties(nof_prop), weights(0)
47 CDotKernel::init(l, r);
48 SG_DEBUG(
"Initialized WeightedDegreeRBFKernel (%p).\n",
this);
70 SG_DEBUG(
"Initialized weights for WeightedDegreeRBFKernel (%p).\n",
this);
98 for (int32_t k=0; k < limit; k++)
100 resultid+=
CMath::sq(avec[i+k]-bvec[i+k]);
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual ~CWeightedDegreeRBFKernel()
virtual bool init_normalizer()
CFeatures * rhs
feature vectors to occur on right hand side
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual bool init(CFeatures *l, CFeatures *r)
CWeightedDegreeRBFKernel()
#define SG_MALLOC(type, len)