11 #ifndef _SPARSESPATIALSAMPLESTRINGKERNEL_H___ 12 #define _SPARSESPATIALSAMPLESTRINGKERNEL_H___ 14 #include <shogun/lib/config.h> 61 virtual void cleanup();
75 void set_d(int32_t max_distance)
90 void set_t(int32_t sequence_length)
106 virtual const char*
get_name()
const {
return "SparseSpatialSampleStringKernel"; }
117 virtual float64_t compute(int32_t idx_a, int32_t idx_b);
126 SSKFeatures *extractTriple(
int **S,
int *len,
int nStr,
int d1,
int d2);
133 SSKFeatures *extractDouble(
int **S,
int *len,
int nStr,
int d1);
138 void compute_double(int32_t idx_a, int32_t idx_b);
143 void compute_triple(int32_t idx_a, int32_t idx_b);
150 int* cntsrtna(
int *sx,
int k,
int r,
int na);
159 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.