70 void CTwoSampleTest::init()
74 SG_ADD(&
m_m,
"m",
"Index of first sample of q",
128 result=1.0-i/values.
vlen;
131 SG_ERROR(
"Unknown method to approximate null distribution!\n");
149 SG_ERROR(
"Unknown method to approximate null distribution!\n");
166 "(%d) is greater than total number of samples (%d)!\n",
void range_fill(T start=0)
static void permute(SGVector< T > v, CRandom *rand=NULL)
virtual float64_t compute_threshold(float64_t alpha)
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)
static void qsort(T *output, int32_t size)
Hypothesis test base class. Provides an interface for statistical hypothesis testing via three method...
virtual CFeatures * create_merged_copy(CList *others)
Class SGObject is the base class of all shogun objects.
virtual ~CTwoSampleTest()
virtual void set_p_and_q(CFeatures *p_and_q)
index_t find_position_to_insert(T element)
all of classes and functions are contained in the shogun namespace
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)