#include "sampling.h" #include "iostream.h" class SamplingTest { public: void Init(fx_module *module) { module_=module; } void Destruct(); //void Test_sampling(double *num_of_people, Vector *ind_unknown_x){ void Test_sampling(double percent_added_sample){ int num_of_people; Vector ind_unknown_x; double initial_percent_sample; Vector initial_parameter; sampling.Init(module_, &num_of_people, &ind_unknown_x, &initial_percent_sample, &initial_parameter); NOTIFY("Number of people in dataset is %d", num_of_people); NOTIFY("Shuffling"); sampling.Shuffle_(); NOTIFY("Sampling starts with %f percent of population", initial_percent_sample); NOTIFY("Starting Point:"); for(index_t i=0; i current_added_first_stage_x; current_added_first_stage_x.Init(); ArrayList current_added_second_stage_x; current_added_second_stage_x.Init(); ArrayList current_added_unknown_x_past; current_added_unknown_x_past.Init(); ArrayList current_added_first_stage_y; current_added_first_stage_y.Init(); int count=0; int sample_size=0; double current_percent_added_sample=0; while(sample_size