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         
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 

Generado el Wed May 6 15:27:14 2009 para Practica 4 MP: Ordenacion por doxygen1.2.14 escrito por Dimitri van Heesch, © 1997-2002