12 #ifndef _SPECTRUMMISMATCHRBFKERNEL_H___
13 #define _SPECTRUMMISMATCHRBFKERNEL_H___
28 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 struct joint_list_struct
33 unsigned int ex_index;
37 unsigned int mismatch;
74 int32_t size,
float64_t* AA_matrix_, int32_t nr_,
75 int32_t nc_, int32_t degree, int32_t max_mismatch,
float64_t width);
101 virtual const char*
get_name()
const {
return "SpectrumMismatchRBFKernel"; }
121 inline bool set_degree(int32_t deg) { degree=deg;
return true; }
157 std::vector<unsigned int> joint_index, std::vector<unsigned int> joint_mismatch,
158 std::string path,
unsigned int d,
169 std::vector<struct joint_list_struct> & joint_list,
170 std::string path,
unsigned int d);
bool set_degree(int32_t deg)
float64_t AA_helper(std::string &path, const char *joint_seq, unsigned int index)
spectrum mismatch rbf kernel
bool set_max_mismatch(int32_t max)
void compute_helper_all(const char *joint_seq, std::vector< struct joint_list_struct > &joint_list, std::string path, unsigned int d)
virtual void register_params()
float64_t compute_helper(const char *joint_seq, std::vector< unsigned int > joint_index, std::vector< unsigned int > joint_mismatch, std::string path, unsigned int d, const int &alen)
The class Alphabet implements an alphabet and alphabet utility functions.
virtual ~CSpectrumMismatchRBFKernel()
virtual bool init(CFeatures *l, CFeatures *r)
bool set_AA_matrix(float64_t *AA_matrix_=NULL, int32_t nr=128, int32_t nc=128)
virtual void remove_lhs()
float64_t compute(int32_t idx_a, int32_t idx_b)
virtual EKernelType get_kernel_type()
virtual const char * get_name() const
The class Features is the base class of all feature objects.
CSpectrumMismatchRBFKernel()
int32_t kernel_matrix_length
int32_t get_degree() const
CArray2< float64_t > kernel_matrix
Template class StringKernel, is the base class of all String Kernels.
int32_t get_max_mismatch() const