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
00056 void vectorOrd(vector<VElement> &v);
00057
00063 void vectorOrdInv(vector<VElement> &v);
00064
00072 int numAleat(int max);
00073
00074
00092 void intercambiarElem(vector<VElement> &v, float porcentaje);
00093
00100 bool ordenado(const vector<VElement> & v);
00101
00106 void printVector(const vector<VElement> & v);
00107
00108 };
00109
00110
00111 #endif
00112