1. Arturo Hernandez
  2. MvSimulator

Commits

Author Commit Message Date Builds
Arturo Hernandez
Semi Doxygen the main thing WIP
Arturo Hernandez
This has been Doxygened!! I dont know if that is good or bad. All libraries have been commented in Doxygen format
Arturo Hernandez
Change the tableView looks, stretching out things
Arturo Hernandez
Comment out columns in the tableView model generation Now, it will just output time between arrivals, accumulated time, and packet size.
Arturo Hernandez
Refactor old on_btnShowTabData_clicked function Now, it is simply called simulationShowTabbedData, and does the same, tabs the data, so it is put into a model usable by the tableView. Remove the enable/disable switch between simulation, as there is no pair of buttons now. Also, reorder the private functions and variable members in the header file.
Tags
v0.9
Arturo Hernandez
Add the custom number generation in the very first page Now, the user can generate their list of numbers with the values they might want. For this, hackishly the writeCustomNumbersToFile method is defined. It is the same as the writeNumbersToFile, except the it uses the fifth constructor of the Linear Congruential pseudorandom number generator.
Arturo Hernandez
Add spiners for custom number generation to file This is on the numbers page. All lineText widgets were changed to doubleSpiners without decimals. As teh ones in the simulation page, a set of default initial values and maximum value is defined in the constructor. Also, set the poissonVariables pointer to NULL at instance time.
Arturo Hernandez
Change the UI: No dual buttons on simulation Now, after the simulation, it inmediately calls what was the method on_btnShowTabData_clicked. Also, set a minimun width for the whole window.
Arturo Hernandez
Change the tabular data generation Now that it reflects the use of a user defined value for alpha, in the generateTabData method, refactor some variables. Add accumulatedTime variable in the struct MvSimulationTable. Split the variable poisson int poissonVar and poissonVarValue in the same struct. Add condition to test the very first variable/packet, so it's time of arrival and accumulated time is effectively 0. Because. Random…
Arturo Hernandez
Add spinner to set value of alpha. MvExpoRandVar So, apparently, the value of alpha comes from a real life value, si it must be provided prior simulation.
Arturo Hernandez
Add the table generation code Loads all the info into teh QTableView, using a QStandardItemModel. This is declared as a pointer. As a way to test if objects do exist, because some things in the widget are still dependant on them, we 'test' teh, with a simple, if. If those objects exist, memory is free'd, and then, a new object is pointed at with the same variable pointers we used before. The QStandardItemModel uses QStandar…
Arturo Hernandez
Add the simulation functionality First, a little clean up, so all things align to 80 columns as nicely as possible. The whole thing, in on_btnGenerateTabData_clicked, that should be refactored into smaller pieces, instatiates all the objects that'll be needed, the iterates in then. It first creates all the Poisson variables. Then, per Poisson Variable, gets the Uniform and Exponential variables as needed, using 2 for loops. Eac…
Arturo Hernandez
Add structure to hold the table data A somewhat hackish way to hold things, just like in the X² test, this uses a custom structure, and a vector. Here, it is declared as a pointer, for future instantiation of an object of its type.
Arturo Hernandez
Change layouts again. Now the NOTE label and table view in the simulation tab is correct.
Arturo Hernandez
Huge changes: UI and pointers Include the headers for MvExpoRandVar and MvUniformRandVar In mainwindow.cpp and header, change the vector poissonVariables to a pointer, so it can be refilled more easyly and dynamically. Now in the method tabulateData, it is refered to its member methods with the -> operator. In on_btnPoissonVarGen_clicked method-slot, it is now properly init'd and cleanly deleted at the end. This makes it easy…
Arturo Hernandez
Refactor MvLinearCongruential Now, all the constructors use the prefered values in case one of its parameters equal 0. Also add functin getXi, so all the stuff about the creation of the initial X, is away.
Arturo Hernandez
Add new tab in the GUI Add both a generate tabular data, and show tabular data buttons. This is because, perhaps, it will be kept on memory, and then put on display (The tabular data I mean). So, the idea is to first get all the data, and have the container in either memory or a file (txt or comma separated values), and then, after a 'Operation finished well' message, put it on the table view. Also, wondering if I have…
Arturo Hernandez
MvExpoRandVar - Add empty constructor, method overload So, apparently, the exponential variable generator will need to be passed both the alpha value and the (pseudo) random number. The number comes fresh from the LinearCongruential. The alpha value, though, is the Poisson variable that should be made before calling this.
Arturo Hernandez
Change parameter type data definition So, now, we dont have negative type values
Arturo Hernandez
Add the libraries to the compilation chain in the GUI
Arturo Hernandez
Add the uniform generation per se
Arturo Hernandez
Add library for the uniform random variable
Arturo Hernandez
Add the exponential variable generation It is basically a one liner
Arturo Hernandez
Add new library, for Exponential Variable generation
Arturo Hernandez
Add correct chart functionality For this, add 2 QVectors, to serve as the axes of the graph. The function tabulateData simply determines teh maximum number made, so it serves as the basis for the X axe. Then, setPoissonPlot, uses the QVectors, and draws the graph.
Arturo Hernandez
Fix errors on formualae Fix error on the calculation of P, in MvPoissonRandVar Fix error on the MvLinearCongruential. Just a set of typos in this case, that led to overwriting values at instance time.
Arturo Hernandez
Add container for the variables generated Also, add generation method. A kind of hackish one, running a 'forever' loop. Only breaking after y < p, as in the formulae. Adds stub for the plot/graphic/chart.
Arturo Hernandez
Actually increase the damn x - poisson var Well, freudian slip.
Arturo Hernandez
Change the typoe of x in MvPoissonRandVar X is the generated variable. As such, it can only be unsigned, and an integer. Oh snap
Arturo Hernandez
Add the mvPoissonRandVar and QCustomPlot references Adds the header files to the mainwindow.cpp source file. Also, changes, and adds the contents of the last tab in mainwindow.ui
  1. Prev
  2. Next