35 using namespace shogun;
69 void CTwoSampleTest::init()
73 SG_ADD(&
m_m,
"m",
"Index of first sample of q",
127 result=1.0-i/values.
vlen;
130 SG_ERROR(
"Unknown method to approximate null distribution!\n");
148 SG_ERROR(
"Unknown method to approximate null distribution!\n");
165 "(%d) is greater than total number of samples (%d)!\n",
virtual float64_t compute_threshold(float64_t alpha)
index_t find_position_to_insert(T element)
virtual float64_t compute_p_value(float64_t statistic)
virtual SGVector< float64_t > sample_null()
virtual int32_t get_num_vectors() const =0
static float64_t floor(float64_t d)
Hypothesis test base class. Provides an interface for statistical hypothesis testing via three method...
static void permute_vector(SGVector< T > vec)
virtual CFeatures * create_merged_copy(CList *others)
Class SGObject is the base class of all shogun objects.
void range_fill(T start=0)
virtual ~CTwoSampleTest()
virtual void set_p_and_q(CFeatures *p_and_q)
virtual void remove_subset()
The class Features is the base class of all feature objects.
ENullApproximationMethod m_null_approximation_method
index_t m_num_null_samples
virtual CFeatures * get_p_and_q()
virtual float64_t compute_statistic()=0
virtual void add_subset(SGVector< index_t > subset)