11 #ifndef _VARIANCEKERNELNORMALIZER_H___
12 #define _VARIANCEKERNELNORMALIZER_H___
62 for (int32_t i=0; i<n; i++)
66 for (int32_t j=0; j<n; j++)
75 meandiff=1.0/(diag_mean-overall_mean);
87 float64_t value, int32_t idx_lhs, int32_t idx_rhs)
111 virtual const char*
get_name()
const {
return "VarianceKernelNormalizer"; }
virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)
virtual bool init(CKernel *k)
virtual float64_t compute(int32_t x, int32_t y)=0
virtual float64_t normalize(float64_t value, int32_t idx_lhs, int32_t idx_rhs)
virtual int32_t get_num_vec_lhs()
virtual const char * get_name() const
virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)
CVarianceKernelNormalizer()
The class Kernel Normalizer defines a function to post-process kernel values.
CFeatures * rhs
feature vectors to occur on right hand side
all of classes and functions are contained in the shogun namespace
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
static float32_t sqrt(float32_t x)
virtual ~CVarianceKernelNormalizer()
VarianceKernelNormalizer divides by the ``variance''.