产生synthetic DataSet的数据集

Copyright 属于 The Skyline Operator的作者


@inproceedings{DBLP:conf/icde/BorzsonyiKS01, author = {Stephan B{\"o}rzs{\"o}nyi and Donald Kossmann and Konrad Stocker}, title = {The Skyline Operator}, booktitle = {ICDE}, year = {2001}, pages = {421-430}, ee = {http://doi.ieeecomputersociety.org/10.1109/ICDE.2001.914855}, crossref = {DBLP:conf/icde/2001}, bibsource = {DBLP, http://dblp.uni-trier.de} } @proceedings{DBLP:conf/icde/2001, editor = {Dimitrios Georgakopoulos and Alexander Buchmann}, title = {Proceedings of the 17th International Conference on Data Engineering, April 2-6, 2001, Heidelberg, Germany}, publisher = {IEEE Computer Society}, year = {2001}, isbn = {0-7695-1001-9}, bibsource = {DBLP, http://dblp.uni-trier.de} }


需要使用g++编译器进行编译

#define FOR_RELEASE #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include static const double UPPER = 0.95; static const double LOWER = 0.05; #ifndef RADIUS_BOUND #define RADIUS_BOUND 0.05 #endif #define DOMAIN 10000 using namespace std; double RandomEqual(double min,double max) { double x = (double)rand()/RAND_MAX; return x*(max-min)+min; } double RandomPeak(double min,double max,int dim) { double sum = 0.0; for (int d=0; d i) { i ++; } return (double)i * s; } // void GenerateDataEqually(ostream& dou_data,int Count,int DupRatio,int Dimensions) void GenerateDataEqually(double** center, int Dimensions, int Count, int DupRatio) { double step = 1.0 / ((double)Count / (double)DupRatio); for (int i=0; i=1) goto again; for (int d=0; d=UPPER) goto again; for (int d=0; d=UPPER) goto again; for (int d=0; d

你可能感兴趣的:(产生synthetic DataSet的数据集)