11 #ifndef _SPARSESPATIALSAMPLESTRINGKERNEL_H___ 12 #define _SPARSESPATIALSAMPLESTRINGKERNEL_H___ 59 virtual void cleanup();
73 void set_d(int32_t max_distance)
88 void set_t(int32_t sequence_length)
104 virtual const char*
get_name()
const {
return "SparseSpatialSampleStringKernel"; }
115 virtual float64_t compute(int32_t idx_a, int32_t idx_b);
124 SSKFeatures *extractTriple(
int **S,
int *len,
int nStr,
int d1,
int d2);
131 SSKFeatures *extractDouble(
int **S,
int *len,
int nStr,
int d1);
136 void compute_double(int32_t idx_a, int32_t idx_b);
141 void compute_triple(int32_t idx_a, int32_t idx_b);
148 int* cntsrtna(
int *sx,
int k,
int r,
int na);
157 void countAndUpdate(
int *outK,
int *sx,
int *g,
int k,
int r,
int nStr);
void set_d(int32_t max_distance)
Sparse Spatial Sample String Kernel by Pavel Kuksa pkuksa@cs.rutgers.edu and Vladimir Pavlovic vladim...
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
void set_t(int32_t sequence_length)
virtual const char * get_name() const
virtual EKernelType get_kernel_type()
Template class StringKernel, is the base class of all String Kernels.