30 SG_ERROR(
"%s: Only features with equal number of vectors are currently " 43 SG_ERROR(
"%s: Only features with equal number of vectors are currently " 80 result+=K(j, i)*L(i, j);
161 SG_DEBUG(
"sum_K: %f, sum_L: %f, trace_K: %f, trace_L: %f\n", sum_K, sum_L,
188 float64_t var_hsic=1.0/m/(m-1)*(sum-trace);
189 SG_DEBUG(
"1.0/m/(m-1)*(sum-trace): %f\n", var_hsic)
193 var_hsic=72.0*(m-4)*(m-5)/m/(m-1)/(m-2)/(m-3)*var_hsic;
194 SG_DEBUG(
"var_hsic: %f\n", var_hsic)
198 float64_t mu_x=1.0/m/(m-1)*(sum_K-trace_K);
199 float64_t mu_y=1.0/m/(m-1)*(sum_L-trace_L);
200 SG_DEBUG(
"mu_x: %f, mu_y: %f\n", mu_x, mu_y)
203 float64_t m_hsic=1.0/m*(1+mu_x*mu_y-mu_x-mu_y);
292 SG_DEBUG(
"entering CHSIC::bootstrap_null()\n")
327 SG_DEBUG(
"leaving CHSIC::bootstrap_null()\n")
virtual bool init(CFeatures *lhs, CFeatures *rhs)
virtual float64_t compute_threshold(float64_t alpha)
virtual void add_row_subset(SGVector< index_t > subset)
The Custom Kernel allows for custom user provided kernel matrices.
virtual int32_t get_num_vectors() const =0
static float64_t gamma_cdf(float64_t x, float64_t a, float64_t b)
void add(const SGVector< T > x)
SGMatrix< float64_t > get_kernel_matrix()
virtual void remove_col_subset()
virtual void remove_row_subset()
virtual void add_col_subset(SGVector< index_t > subset)
SGVector< float64_t > fit_null_gamma()
Independence test base class. Provides an interface for performing an independence test...
virtual float64_t compute_p_value(float64_t statistic)
void range_fill(T start=0)
virtual SGVector< float64_t > bootstrap_null()
virtual float64_t compute_threshold(float64_t alpha)
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
virtual float64_t compute_p_value(float64_t statistic)
virtual EKernelType get_kernel_type()=0
The class Features is the base class of all feature objects.
static float64_t inverse_gamma_cdf(float64_t p, float64_t a, float64_t b)
SGMatrix< float64_t > get_kernel_matrix_K()
virtual const char * get_name() const
ENullApproximationMethod m_null_approximation_method
virtual float64_t compute_statistic()
static int32_t pow(bool x, int32_t n)
virtual void add_subset(SGVector< index_t > subset)
virtual SGVector< float64_t > bootstrap_null()
SGMatrix< float64_t > get_kernel_matrix_L()