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
00047 void vectorOrd(vector<VElement> &v);
00048
00054 void vectorOrdInv(vector<VElement> &v);
00055
00063 int numAleat(int max);
00064
00065
00083 void intercambiarElem(vector<VElement> &v, float porcentaje);
00084
00091 bool ordenado(const vector<VElement> & v);
00092
00097 void printVector(const vector<VElement> & v);
00098
00099 };
00100
00101
00102 #endif
00103