50 void CTwoDistributionsTestStatistic::init()
54 SG_ADD(&
m_m,
"m",
"Index of first sample of q",
63 SG_DEBUG(
"entering CTwoDistributionsTestStatistic::bootstrap_null()\n")
66 "No appended features p and q!\n");
91 SG_DEBUG(
"leaving CTwoDistributionsTestStatistic::bootstrap_null()\n")
110 result=1.0-i/values.
vlen;
114 SG_ERROR(
"CTwoDistributionsTestStatistics::compute_p_value(): Unknown" 115 " method to approximate null distribution!\n");
136 SG_ERROR(
"CTwoDistributionsTestStatistics::compute_threshold():" 137 "Unknown method to approximate null distribution!\n");
virtual float64_t compute_statistic()=0
virtual float64_t compute_threshold(float64_t alpha)
index_t find_position_to_insert(T element)
virtual SGVector< float64_t > bootstrap_null()
virtual int32_t get_num_vectors() const =0
static float64_t floor(float64_t d)
static void permute_vector(SGVector< T > vec)
virtual CFeatures * create_merged_copy(CList *others)
Class SGObject is the base class of all shogun objects.
CTwoDistributionsTestStatistic()
virtual CFeatures * get_p_and_q()
void range_fill(T start=0)
index_t m_bootstrap_iterations
virtual ~CTwoDistributionsTestStatistic()
Test statistic base class. Provides an interface for statistical tests via three methods: compute_sta...
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
virtual float64_t compute_p_value(float64_t statistic)
The class Features is the base class of all feature objects.
virtual void set_p_and_q(CFeatures *p_and_q)
ENullApproximationMethod m_null_approximation_method
virtual void add_subset(SGVector< index_t > subset)