12 #ifndef _SPECTRUMMISMATCHRBFKERNEL_H___ 13 #define _SPECTRUMMISMATCHRBFKERNEL_H___ 15 #include <shogun/lib/config.h> 29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 struct joint_list_struct
34 unsigned int ex_index;
38 unsigned int mismatch;
60 int32_t nc_, int32_t degree, int32_t max_mismatch,
float64_t width);
76 int32_t nr_, int32_t nc_, int32_t degree, int32_t max_mismatch,
91 virtual void cleanup();
108 return "SpectrumMismatchRBFKernel";
116 bool set_max_mismatch(int32_t
max);
153 bool set_AA_matrix(
float64_t* AA_matrix_=NULL, int32_t nr=128, int32_t nc=
164 float64_t AA_helper(std::string &path,
const char* joint_seq,
176 float64_t compute_helper(
const char* joint_seq,
177 std::vector<unsigned int> joint_index,
178 std::vector<unsigned int> joint_mismatch, std::string path,
179 unsigned int d,
const int & alen);
188 void compute_helper_all(
const char* joint_seq,
189 std::vector<struct joint_list_struct> & joint_list,
190 std::string path,
unsigned int d);
203 float64_t compute(int32_t idx_a, int32_t idx_b);
207 virtual void register_params();
210 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
T max(const Container< T > &a)
Template class StringKernel, is the base class of all String Kernels.