Página principal   Lista de namespace   Lista de componentes   Lista de archivos   Miembros de las clases   Archivos de los miembros  

DataGenerator.h

Ir a la documentación de este archivo.
00001 /*****************************
00002  * Practica 3 MP
00003  * Curso 2008-2009
00004  *
00005  * Vicente Lujan Mansilla
00006  * Lorena Margareto Bisquert
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 

Generado el Wed May 6 16:18:01 2009 para Practica 5 MP: Ordenacion rapida por doxygen1.2.14 escrito por Dimitri van Heesch, © 1997-2002