12 #ifndef _SPECTRUMMISMATCHRBFKERNEL_H___ 13 #define _SPECTRUMMISMATCHRBFKERNEL_H___ 27 #ifndef DOXYGEN_SHOULD_SKIP_THIS 29 struct joint_list_struct
32 unsigned int ex_index;
36 unsigned int mismatch;
58 int32_t nc_, int32_t degree, int32_t max_mismatch,
float64_t width);
74 int32_t nr_, int32_t nc_, int32_t degree, int32_t max_mismatch,
89 virtual void cleanup();
106 return "SpectrumMismatchRBFKernel";
114 bool set_max_mismatch(int32_t max);
151 bool set_AA_matrix(
float64_t* AA_matrix_=NULL, int32_t nr=128, int32_t nc=
162 float64_t AA_helper(std::string &path,
const char* joint_seq,
174 float64_t compute_helper(
const char* joint_seq,
175 std::vector<unsigned int> joint_index,
176 std::vector<unsigned int> joint_mismatch, std::string path,
177 unsigned int d,
const int & alen);
186 void compute_helper_all(
const char* joint_seq,
187 std::vector<struct joint_list_struct> & joint_list,
188 std::string path,
unsigned int d);
201 float64_t compute(int32_t idx_a, int32_t idx_b);
205 virtual void register_params();
208 void register_alphabet();
bool set_degree(int32_t deg)
spectrum mismatch rbf kernel
The class Alphabet implements an alphabet and alphabet utility functions.
CDynamicArray< float64_t > * kernel_matrix
int32_t get_degree() const
int32_t get_max_mismatch() const
SGMatrix< float64_t > AA_matrix
virtual const char * get_name() const
virtual EKernelType get_kernel_type()
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
int32_t kernel_matrix_length
Template class StringKernel, is the base class of all String Kernels.