39 using namespace internal;
51 CHypothesisTest::CHypothesisTest()
53 SG_WARNING(
"An empty instance of this class should not be used! If you are seeing \ 54 this error, please contact Shogun developers!\n");
68 self->data_mgr.set_train_test_mode(on);
73 self->data_mgr.set_train_test_ratio(ratio);
74 self->data_mgr.reset();
82 return 1.0-i/values.
vlen;
101 return "HypothesisTest";
106 return self->data_mgr;
111 return self->data_mgr;
virtual const char * get_name() const
index_t find_position_to_insert(T element)
virtual float64_t compute_p_value(float64_t statistic)
static float64_t floor(float64_t d)
virtual float64_t compute_threshold(float64_t alpha)
bool perform_test(float64_t alpha)
Class SGObject is the base class of all shogun objects.
virtual SGVector< float64_t > sample_null()=0
internal::DataManager & get_data_mgr()
virtual ~CHypothesisTest()
all of classes and functions are contained in the shogun namespace
Class DataManager for fetching/streaming test data block-wise. It can handle data coming from multipl...
void set_train_test_ratio(float64_t ratio)
Self(index_t num_distributions)
virtual float64_t compute_statistic()=0
void set_train_test_mode(bool on)