00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _DATA_GENERATOR_H
00010 #define _DATA_GENERATOR_H
00011
00012 #include <iostream>
00013 #include <vector>
00014 #include <algorithm>
00015 #include "VElement.h"
00016
00017 using namespace std;
00018
00023 class DataGenerator {
00024
00025 public:
00026
00032 DataGenerator();
00033
00040 void vectorOrdRep(vector<VElement> &v, float veces);
00041
00049 void vectorConRepeticion(vector<VElement> &v, float veces, float porcentaje);
00050
00058 void vectorSinRepeticion(vector<VElement> &v, float porcentaje);
00059
00065 void vectorOrd(vector<VElement> &v);
00066
00072 void vectorOrdInv(vector<VElement> &v);
00073
00081 int numAleat(int max);
00082
00083
00101 void intercambiarElem(vector<VElement> &v, float porcentaje);
00102
00109 bool ordenado(const vector<VElement> & v);
00110
00115 void printVector(const vector<VElement> & v);
00116
00117 };
00118
00119
00120 #endif
00121