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 #include<list>
00017
00018 using namespace std;
00019
00024 class DataGenerator {
00025
00026 public:
00027
00033 DataGenerator();
00034
00041 void vectorOrdRep(vector<VElement> &v, float veces);
00042
00050 void vectorConRepeticion(vector<VElement> &v, float veces, float porcentaje);
00051
00052
00059 void vectorConRepeticionHastaM(vector<VElement> &v, int m);
00060
00068 void vectorSinRepeticion(vector<VElement> &v, float porcentaje);
00069
00075 void vectorOrd(vector<VElement> &v);
00076
00082 void vectorOrdInv(vector<VElement> &v);
00083
00091 int numAleat(int max);
00092
00093
00111 void intercambiarElem(vector<VElement> &v, float porcentaje);
00112
00119 bool ordenado(const vector<VElement> & v);
00120
00125 void printVector(const vector<VElement> & v);
00126
00127 void CrearLista(list <int> &l, int m,int n);
00128
00129 };
00130
00131
00132 #endif
00133