12 #ifndef _SPECTRUMRBFKERNEL_H___
13 #define _SPECTRUMRBFKERNEL_H___
91 virtual const char*
get_name()
const {
return "SpectrumRBFKernel"; }
98 inline bool set_degree(int32_t deg) { degree=deg;
return true; }
119 float64_t AA_helper(
const char* path,
const int degree,
const char* joint_seq,
unsigned int index);
virtual bool init(CFeatures *l, CFeatures *r)
virtual const char * get_name() const
The class Alphabet implements an alphabet and alphabet utility functions.
int32_t max_sequence_length
float64_t AA_helper(const char *path, const int degree, const char *joint_seq, unsigned int index)
CStringFeatures< char > * string_features
bool set_AA_matrix(float64_t *AA_matrix_)
void read_profiles_and_sequences()
SGString< char > * sequences
std::vector< std::vector< float64_t > > profiles
int32_t get_degree() const
virtual void register_param()
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
bool set_degree(int32_t deg)
virtual EKernelType get_kernel_type()
CDynamicArray< float64_t > kernel_matrix
virtual ~CSpectrumRBFKernel()
float64_t compute(int32_t idx_a, int32_t idx_b)
Template class StringKernel, is the base class of all String Kernels.
SGMatrix< float64_t > AA_matrix
std::vector< std::string > sequence_labels