68 void CStreamingMMD::init()
99 "multiple kernels specified, but underlying kernel is not of type "
229 SG_DEBUG(
"streaming %d blocks from p of blocksize %d!\n", num_blocks,
233 for (
index_t i=0; i<num_blocks; ++i)
239 SG_DEBUG(
"streaming %d blocks from q of blocksize %d!\n", num_blocks,
243 for (
index_t i=0; i<num_blocks; ++i)
253 SG_DEBUG(
"merging and premuting features!\n");
279 for (
index_t i=0; i<2*num_blocks; ++i)
287 if (i<2*num_blocks-1)
288 copy.
add(num_this_run);
303 SG_ERROR(
"Method not implemented since linear time mmd is based on "
304 "streaming features\n");
309 SG_ERROR(
"Method not implemented since linear time mmd is based on "
310 "streaming features\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 void compute_statistic_and_variance(SGVector< float64_t > &statistic, SGVector< float64_t > &variance, bool multiple_kernels=false)=0
virtual float64_t compute_threshold(float64_t alpha)
virtual float64_t compute_p_value(float64_t statistic)
virtual CStreamingFeatures * get_streaming_q()
virtual CStreamingFeatures * get_streaming_p()
static float64_t inverse_normal_cdf(float64_t y0)
virtual CFeatures * get_streamed_features(index_t num_elements)
virtual int32_t get_num_vectors() const =0
void set_simulate_h0(bool simulate_h0)
Kernel two sample test base class. Provides an interface for performing a two-sample test using a ker...
CSGObject * delete_element()
virtual SGVector< float64_t > sample_null()
virtual float64_t compute_p_value(float64_t statistic)
virtual float64_t compute_variance_estimate()
CStreamingFeatures * m_streaming_q
virtual CFeatures * create_merged_copy(CList *others)
CSGObject * get_first_element()
Class SGObject is the base class of all shogun objects.
virtual CFeatures * get_p_and_q()
all of classes and functions are contained in the shogun namespace
virtual EKernelType get_kernel_type()=0
virtual CFeatures * copy_subset(SGVector< index_t > indices)
The class Features is the base class of all feature objects.
bool append_element(CSGObject *data)
Streaming features are features which are used for online algorithms.
static float64_t normal_cdf(float64_t x, float64_t std_dev=1)
ENullApproximationMethod m_null_approximation_method
virtual float64_t perform_test()
CStreamingFeatures * m_streaming_p
static float32_t sqrt(float32_t x)
void delete_all_elements()
index_t m_num_null_samples
virtual void set_p_and_q(CFeatures *p_and_q)
CList * stream_data_blocks(index_t num_blocks, index_t num_this_run)
virtual float64_t perform_test()
virtual void add_subset(SGVector< index_t > subset)
Class List implements a doubly connected list for low-level-objects.
Block< Matrix > block(Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size)
virtual float64_t compute_statistic()
void add(const SGVector< T > x)