47 void CHypothesisTest::init()
50 "Number of permutation iterations for sampling null",
53 "null_approximation_method",
54 "Method for approximating null distribution",
86 result=1.0-i/values.
vlen;
89 SG_ERROR(
"Unknown method to approximate null distribution!\n");
108 SG_ERROR(
"Unknown method to approximate null distribution!\n");
124 return p_value<alpha;
virtual float64_t compute_p_value(float64_t statistic)
static float64_t floor(float64_t d)
virtual float64_t compute_threshold(float64_t alpha)
static void qsort(T *output, int32_t size)
Class SGObject is the base class of all shogun objects.
virtual void set_num_null_samples(index_t num_null_samples)
virtual SGVector< float64_t > sample_null()=0
index_t find_position_to_insert(T element)
virtual ~CHypothesisTest()
all of classes and functions are contained in the shogun namespace
ENullApproximationMethod m_null_approximation_method
virtual float64_t perform_test()
virtual void set_null_approximation_method(ENullApproximationMethod null_approximation_method)
index_t m_num_null_samples
virtual float64_t compute_statistic()=0